1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Silenced clang warnings

This commit is contained in:
Martin Tůma 2020-03-27 23:09:13 +01:00
parent 77ac919b83
commit b1647d944c
2 changed files with 3 additions and 2 deletions

View File

@ -160,7 +160,7 @@ void GUI::mapInitialized()
_showMapAction->setEnabled(true);
_clearMapCacheAction->setEnabled(true);
} else {
qWarning(qPrintable(map->name() + ": " + map->errorString()));
qWarning("%s: %s", qPrintable(map->name()), qPrintable(map->errorString()));
action->deleteLater();
}
}

View File

@ -75,7 +75,8 @@ QList<Map*> MapList::loadDir(const QString &path, QString &errorString)
if (map)
list.append(map);
else
qWarning(qPrintable(fi.absoluteFilePath() + ": " + errorString));
qWarning("%s: %s", qPrintable(fi.absoluteFilePath()),
qPrintable(errorString));
if (terminate)
break;
}