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; }