mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Ref T480 No need for QStringLiteral when concatenating with %, use UTF-16 string literals.
This commit is contained in:
@@ -338,7 +338,7 @@ namespace BlackMisc
|
||||
const QDir dir(simObjectsDirectoryFix);
|
||||
if (!dir.exists()) { return false; }
|
||||
|
||||
const QString lastSegment = QStringLiteral("/") % CFileUtils::lastPathSegment(simObjectsDirectoryFix) % QStringLiteral("/");
|
||||
const QString lastSegment = u'/' % CFileUtils::lastPathSegment(simObjectsDirectoryFix) % u'/';
|
||||
const int index = model.getFileName().lastIndexOf(lastSegment);
|
||||
if (index < 0) { return false; }
|
||||
const QString relPart = model.getFileName().mid(index + lastSegment.length());
|
||||
|
||||
Reference in New Issue
Block a user