mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-19 10:34:25 +03:00
report_manager: more use of unordered_map
This commit is contained in:
committed by
Matthew Barr
parent
1878b9a857
commit
9258592d0b
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user