Commit c5e29b79 authored by Frederik Schwarzer's avatar Frederik Schwarzer

Avoid string concatenation.

parent d374075e
......@@ -65,8 +65,8 @@ void LevelLoader::setLevelset(const QString &levelname)
// Loading document model
// Locating the path in the filesystem
QString path = QLatin1String("levelsets/") + m_levelname + QLatin1String(".levelset");
path = QStandardPaths::locate(QStandardPaths::AppDataLocation, path);
QString path = QStringLiteral("levelsets/%1.levelset").arg(m_levelname);
path = QStandardPaths::locate(QStandardPaths::AppDataLocation, path);
// --
delete m_levelset;
......@@ -257,7 +257,7 @@ void LevelLoader::loadOldStyleLevel()
m_level++;
// Loading the levelset
QString path = QLatin1String("levelsets/") + m_levelname + QLatin1String(".levelset");
QString path = QStringLiteral("levelsets/%1.levelset").arg(m_levelname);
path = QStandardPaths::locate(QStandardPaths::AppDataLocation, path);
KConfig file(path, KConfig::SimpleConfig);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment