Fix Cppcheck warning
This commit is contained in:
parent
811a71aa06
commit
c4000b27f8
|
@ -59,7 +59,7 @@ void TxtReport::writeError(const ErrorItem &error)
|
|||
for (int i = 0; i < error.errorPath.size(); i++) {
|
||||
const QString file = QDir::toNativeSeparators(error.errorPath[i].file);
|
||||
line += QString("[%1:%2]").arg(file).arg(error.errorPath[i].line);
|
||||
if (i < error.errorPath.size() - 1 && !error.errorPath.isEmpty()) {
|
||||
if (i < error.errorPath.size() - 1) {
|
||||
line += " -> ";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue