mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Issue #630 - Detect duplicates in the list
This commit is contained in:
parent
e7f5e8de6c
commit
6a89cdb68a
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue