report_manager: more use of unordered_map

This commit is contained in:
Justin Viiret
2017-04-24 14:58:20 +10:00
committed by Matthew Barr
parent 1878b9a857
commit 9258592d0b
3 changed files with 26 additions and 8 deletions

View File

@@ -67,7 +67,7 @@ u32 ReportManager::getInternalId(const Report &ir) {
u32 size = reportIds.size();
reportIds.push_back(ir);
reportIdToInternalMap[ir] = size;
reportIdToInternalMap.emplace(ir, size);
DEBUG_PRINTF("new report %u\n", size);
return size;
}