forked from qt-creator/qt-creator
Fix Krazy code scanning tool warnings (QString, loops, spelling).
This commit is contained in:
@@ -53,7 +53,7 @@ static QString errorCodeToString(DWORD errorCode)
|
||||
if (data != 0)
|
||||
LocalFree(data);
|
||||
|
||||
if (result.endsWith("\n"))
|
||||
if (result.endsWith('\n'))
|
||||
result.truncate(result.length() - 1);
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user