From b1647d944c6e873aec4a39b365f24e71ce989628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 27 Mar 2020 23:09:13 +0100 Subject: [PATCH] Silenced clang warnings --- src/GUI/gui.cpp | 2 +- src/map/maplist.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index 9a75ad6c..07d3e482 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -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(); } } diff --git a/src/map/maplist.cpp b/src/map/maplist.cpp index 01c027a1..391a82cf 100644 --- a/src/map/maplist.cpp +++ b/src/map/maplist.cpp @@ -75,7 +75,8 @@ QList 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; }