report_manager: use unordered externalIdMap

This commit is contained in:
Justin Viiret
2017-04-24 14:40:47 +10:00
committed by Matthew Barr
parent 1287b70f4b
commit 1878b9a857
2 changed files with 5 additions and 3 deletions

View File

@@ -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;