mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:27:19 +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
|
||||
|
||||
Reference in New Issue
Block a user