CppTools: Fix some clazy level0 warnings

Use midRef() instead [-Wclazy-qstring-ref]
Use multi-arg instead [-Wclazy-qstring-arg]

Change-Id: I74d79c4d9595aabd6b2b621743055b807652383c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Nikolai Kosjar
2019-02-07 12:36:07 +01:00
parent 12f4b1ee86
commit c62f811c4b
3 changed files with 5 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ static QString convertToNewClazyChecksFormat(const QString &checks)
if (checks.size() == 6 && checks.startsWith("level")) {
bool ok = false;
const int level = checks.mid(5).toInt(&ok);
const int level = checks.midRef(5).toInt(&ok);
QTC_ASSERT(ok, return QString());
return clazyChecksForLevel(level);
}