mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
refs #937 Resolved clazy warnings: unnecessary detaching of containers.
This commit is contained in:
@@ -90,7 +90,7 @@ namespace BlackMisc
|
||||
QStringList remove(toUpper(modelsToBeRemoved));
|
||||
remove.sort();
|
||||
|
||||
QSet<QString> removeSet(knownModels.toSet().intersect(remove.toSet()));
|
||||
QSet<QString> removeSet(knownModels.toSet() & remove.toSet());
|
||||
int c = 0;
|
||||
for (const QString &model : removeSet)
|
||||
{
|
||||
|
||||
@@ -132,10 +132,11 @@ namespace BlackMisc
|
||||
|
||||
const QString &CVPilotRulesReader::standardMappingsDirectory()
|
||||
{
|
||||
//! \fixme not threadsafe
|
||||
static QString directory;
|
||||
if (directory.isEmpty())
|
||||
{
|
||||
directory = QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation).first();
|
||||
directory = QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation).constFirst();
|
||||
if (!directory.endsWith('/')) { directory.append('/'); }
|
||||
directory.append("vPilot Files/Model Matching Rule Sets");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user