Commit 57241104 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QLatin1Char('/') here

parent 6e4570bd
......@@ -211,8 +211,8 @@ void GrantleeThemeTest::testRenderTemplate()
QVERIFY(validateHtml(themePath, templateBasename, result));
QVERIFY(compareHtml(themePath, templateBasename));
QFile::remove(themePath + QDir::separator() + templateBasename + QStringLiteral(".out"));
QFile::remove(themePath + QDir::separator() + templateBasename + QStringLiteral(".out.html"));
QFile::remove(themePath + QLatin1Char('/') + templateBasename + QStringLiteral(".out"));
QFile::remove(themePath + QLatin1Char('/') + templateBasename + QStringLiteral(".out.html"));
}
}
......
......@@ -117,7 +117,7 @@ Theme::Theme()
Theme::Theme(const QString &themePath, const QString &dirName, const QString &defaultDesktopFileName)
: d(new ThemePrivate)
{
const QString themeInfoFile = themePath + QDir::separator() + defaultDesktopFileName;
const QString themeInfoFile = themePath + QLatin1Char('/') + defaultDesktopFileName;
KConfig config(themeInfoFile);
KConfigGroup group(&config, QStringLiteral("Desktop Entry"));
if (group.isValid()) {
......
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