mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:07:02 +08:00
Fixed clazy warnings: use QStringRef.
This commit is contained in:
@@ -475,7 +475,7 @@ namespace BlackMisc
|
||||
ok = fn.size() > 5;
|
||||
if (!ok) { continue; }
|
||||
BLACK_VERIFY_X(ok, Q_FUNC_INFO, "wrong file name");
|
||||
const int id = fn.left(5).toInt(&ok);
|
||||
const int id = fn.leftRef(5).toInt(&ok);
|
||||
BLACK_VERIFY_X(ok, Q_FUNC_INFO, "wrong id format");
|
||||
if (!ok) { continue; }
|
||||
ids.insert(id);
|
||||
|
||||
Reference in New Issue
Block a user