mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Fixed clazy warnings: unnecessary containers and containers being detached.
This commit is contained in:
@@ -537,7 +537,7 @@ namespace BlackMisc
|
||||
{
|
||||
static const QString empty;
|
||||
if (this->getModelDirectoriesOrDefault().isEmpty()) { return empty; }
|
||||
return this->getModelDirectoriesOrDefault().first();
|
||||
return this->getModelDirectoriesOrDefault().constFirst();
|
||||
}
|
||||
|
||||
const QStringList &CSpecializedSimulatorSettings::getDefaultModelDirectories() const
|
||||
|
||||
@@ -418,7 +418,7 @@ namespace BlackMisc
|
||||
if (simulator.isNoSimulator() || simulator.isUnspecified())
|
||||
{
|
||||
// unknown count
|
||||
m_counts[5] = m_counts[5] + 1;
|
||||
m_counts[5]++;
|
||||
return;
|
||||
}
|
||||
if (simulator.isFSX()) { m_counts[0]++; }
|
||||
|
||||
Reference in New Issue
Block a user