mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 00:25:35 +08:00
Fixed clazy warnings: use QStringRef.
This commit is contained in:
@@ -475,7 +475,7 @@ namespace BlackMisc
|
|||||||
ok = fn.size() > 5;
|
ok = fn.size() > 5;
|
||||||
if (!ok) { continue; }
|
if (!ok) { continue; }
|
||||||
BLACK_VERIFY_X(ok, Q_FUNC_INFO, "wrong file name");
|
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");
|
BLACK_VERIFY_X(ok, Q_FUNC_INFO, "wrong id format");
|
||||||
if (!ok) { continue; }
|
if (!ok) { continue; }
|
||||||
ids.insert(id);
|
ids.insert(id);
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
m_indexes.clear();
|
m_indexes.clear();
|
||||||
if (indexes.isEmpty()) { return; }
|
if (indexes.isEmpty()) { return; }
|
||||||
for (const QString &index : indexes.split(';'))
|
for (const QStringRef &index : indexes.splitRef(';'))
|
||||||
{
|
{
|
||||||
if (index.isEmpty()) { continue; }
|
if (index.isEmpty()) { continue; }
|
||||||
bool ok;
|
bool ok;
|
||||||
|
|||||||
Reference in New Issue
Block a user