Issue #630 - Detect duplicates in the list

This commit is contained in:
Hubert Figuière 2021-02-21 22:01:22 -05:00
parent e7f5e8de6c
commit 6a89cdb68a

View file

@ -64,8 +64,10 @@ namespace {
qDebug() << "BL remappings: Invalid line" << Line;
continue;
}
Remapping.insert(std::make_pair(parts.value(0).toStdString(),
auto result = Remapping.insert(std::make_pair(parts.value(0).toStdString(),
parts.value(1).toUtf8().data()));
if (!result.second)
qDebug() << "Duplicate" << parts.value(0);
}
}