Fix Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2018-08-11 15:31:26 +02:00
parent 811a71aa06
commit c4000b27f8
1 changed files with 1 additions and 1 deletions

View File

@ -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 += " -> ";
}