mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +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);
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace BlackMisc
|
||||
{
|
||||
m_indexes.clear();
|
||||
if (indexes.isEmpty()) { return; }
|
||||
for (const QString &index : indexes.split(';'))
|
||||
for (const QStringRef &index : indexes.splitRef(';'))
|
||||
{
|
||||
if (index.isEmpty()) { continue; }
|
||||
bool ok;
|
||||
|
||||
Reference in New Issue
Block a user