mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Fix clang-tidy and clazy warnings
This commit is contained in:
@@ -477,7 +477,7 @@ namespace BlackMisc
|
||||
if (!correctPath) { continue; }
|
||||
|
||||
// absolute or relative path
|
||||
const QString fp = pathValue.left(3).contains(':') ?
|
||||
const QString fp = pathValue.leftRef(3).contains(':') ?
|
||||
pathValue :
|
||||
CFileUtils::appendFilePaths(addOnPath, pathValue);
|
||||
if (CFsDirectories::logConfigPathReading()) { CLogMessage(static_cast<CFsDirectories *>(nullptr)).info(u"Testing '%1' as addon path: '%2'") << fp << addOnPath; }
|
||||
@@ -562,7 +562,7 @@ namespace BlackMisc
|
||||
if (containsAny(soPath, CFsDirectories::fsxSimObjectsExcludeDirectoryPatterns(), Qt::CaseInsensitive)) { continue; }
|
||||
|
||||
// make absolute
|
||||
if (!soPath.left(3).contains(':')) { soPath = CFileUtils::appendFilePaths(relPath, soPath); }
|
||||
if (!soPath.leftRef(3).contains(':')) { soPath = CFileUtils::appendFilePaths(relPath, soPath); }
|
||||
|
||||
const QDir dir(soPath); // always absolute path now
|
||||
if (checked && !dir.exists())
|
||||
@@ -585,7 +585,7 @@ namespace BlackMisc
|
||||
return paths;
|
||||
}
|
||||
|
||||
const QString CFsDirectories::airFileFilter()
|
||||
const QString &CFsDirectories::airFileFilter()
|
||||
{
|
||||
static const QString a("*.air");
|
||||
return a;
|
||||
|
||||
Reference in New Issue
Block a user