mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-19 10:34:25 +03:00
report_manager: use unordered externalIdMap
This commit is contained in:
committed by
Matthew Barr
parent
1287b70f4b
commit
1878b9a857
@@ -174,8 +174,9 @@ u32 ReportManager::getDkey(const Report &r) const {
|
||||
|
||||
void ReportManager::registerExtReport(ReportID id,
|
||||
const external_report_info &ext) {
|
||||
if (contains(externalIdMap, id)) {
|
||||
const external_report_info &eri = externalIdMap.at(id);
|
||||
auto it = externalIdMap.find(id);
|
||||
if (it != externalIdMap.end()) {
|
||||
const external_report_info &eri = it->second;
|
||||
if (eri.highlander != ext.highlander) {
|
||||
/* we have a problem */
|
||||
ostringstream out;
|
||||
|
||||
Reference in New Issue
Block a user