mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Fixed clazy warnings: unnecessary containers and containers being detached in range-for loops.
This commit is contained in:
@@ -352,11 +352,11 @@ namespace BlackMisc
|
||||
{
|
||||
const QMap<QString, int> modelStrings = this->countPerModelString();
|
||||
CAircraftModelList duplicates;
|
||||
for (const QString &ms : modelStrings.keys())
|
||||
for (const auto &pair : makePairsRange(modelStrings))
|
||||
{
|
||||
if (modelStrings[ms] > 1)
|
||||
if (pair.second > 1)
|
||||
{
|
||||
duplicates.push_back(this->findByModelString(ms, Qt::CaseInsensitive));
|
||||
duplicates.push_back(this->findByModelString(pair.first, Qt::CaseInsensitive));
|
||||
}
|
||||
}
|
||||
return duplicates;
|
||||
|
||||
Reference in New Issue
Block a user