Fix some code scanning issues.

QString: Use QChar where appropriate.
This commit is contained in:
Friedemann Kleint
2010-02-01 12:43:56 +01:00
parent d2235489e8
commit 2fd8b2d7ff
54 changed files with 170 additions and 160 deletions

View File

@@ -173,7 +173,7 @@ bool SessionFile::load(const QString &fileName)
// We used to write relative paths into the session file
// relative to the session files, and those were stored in the
// config dir
it.setValue(configDir + "/" + file);
it.setValue(configDir + QLatin1Char('/') + file);
}
}
@@ -380,9 +380,9 @@ SessionManager::SessionManager(QObject *parent)
// Move sessions to that directory
foreach (const QString &session, sessions()) {
QFile file(configDir + "/" + session + ".qws");
QFile file(configDir + QLatin1Char('/') + session + QLatin1String(".qws"));
if (file.exists())
if (file.copy(configDir + "/qtcreator/" + session + ".qws"))
if (file.copy(configDir + QLatin1String("/qtcreator/") + session + QLatin1String(".qws")))
file.remove();
}
}