Fixed clazy warnings: use QStringRef.

This commit is contained in:
Mat Sutcliffe
2018-12-17 17:43:44 +00:00
parent c71d358648
commit cecec6107c
2 changed files with 2 additions and 2 deletions

View File

@@ -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);