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

Use QLatin1Char('/') here

parent addbc65d
......@@ -106,7 +106,7 @@ bool ImportLibreOfficeAutocorrection::importFile(Type type, const KArchiveDirect
if (documentList && documentList->isFile()) {
const KArchiveFile *archiveFile = static_cast<const KArchiveFile *>(documentList);
archiveFile->copyTo(mTempDir->path());
QFile file(mTempDir->path() + QDir::separator() + archiveFileName);
QFile file(mTempDir->path() + QLatin1Char('/') + archiveFileName);
QDomDocument doc;
if (loadDomElement(doc, &file)) {
QDomElement list = doc.documentElement();
......
......@@ -104,14 +104,14 @@ void TemplateManager::loadTemplates(bool init)
TemplateInfo TemplateManager::loadTemplate(const QString &themePath, const QString &defaultDesktopFileName)
{
TemplateInfo info;
const QString themeInfoFile = themePath + QDir::separator() + defaultDesktopFileName;
const QString themeInfoFile = themePath + QLatin1Char('/') + defaultDesktopFileName;
KConfig config(themeInfoFile);
KConfigGroup group(&config, QStringLiteral("Desktop Entry"));
info.name = group.readEntry("Name", QString());
const QString filename = group.readEntry("FileName", QString());
if (!filename.isEmpty()) {
QFile file(themePath + QDir::separator() + filename);
QFile file(themePath + QLatin1Char('/') + filename);
if (file.exists()) {
if (file.open(QIODevice::ReadOnly)) {
info.script = QString::fromUtf8(file.readAll());
......
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