diff options
author | Laurent Montel <montel@kde.org> | 2019-08-28 13:58:56 +0200 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2019-08-28 13:59:13 +0200 |
commit | b0191f68562d896a3e962a534ff0c26ae72de2de (patch) | |
tree | 77e3480f9ac0f352e95c269dfff8d70cad7d0a1e /src | |
parent | b4d33f4419f8f8626f690e11e46dcff25586b35b (diff) | |
download | kconfig-b0191f68562d896a3e962a534ff0c26ae72de2de.tar.gz kconfig-b0191f68562d896a3e962a534ff0c26ae72de2de.tar.bz2 |
GIT_SILENT: use QLatin1String
Diffstat (limited to 'src')
-rw-r--r-- | src/core/kconfigini.cpp | 2 | ||||
-rw-r--r-- | src/core/kdesktopfile.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/kconfigini.cpp b/src/core/kconfigini.cpp index d07b59c6..798ce571 100644 --- a/src/core/kconfigini.cpp +++ b/src/core/kconfigini.cpp @@ -230,7 +230,7 @@ KConfigIniBackend::parseConfig(const QByteArray ¤tLocale, KEntryMap &entry break; case 'd': entryOptions |= KEntryMap::EntryDeleted; - aKey = aKey.left(start); + aKey.truncate(start); printableToString(&aKey, file, lineNo); entryMap.setEntry(currentGroup, aKey.toByteArray(), QByteArray(), entryOptions); goto next_line; diff --git a/src/core/kdesktopfile.cpp b/src/core/kdesktopfile.cpp index 367a7d8b..d34400eb 100644 --- a/src/core/kdesktopfile.cpp +++ b/src/core/kdesktopfile.cpp @@ -375,12 +375,12 @@ bool KDesktopFile::noDisplay() const return true; } if (d->desktopGroup.hasKey("OnlyShowIn")) { - if (!d->desktopGroup.readXdgListEntry("OnlyShowIn").contains(QStringLiteral("KDE"))) { + if (!d->desktopGroup.readXdgListEntry("OnlyShowIn").contains(QLatin1String("KDE"))) { return true; } } if (d->desktopGroup.hasKey("NotShowIn")) { - if (d->desktopGroup.readXdgListEntry("NotShowIn").contains(QStringLiteral("KDE"))) { + if (d->desktopGroup.readXdgListEntry("NotShowIn").contains(QLatin1String("KDE"))) { return true; } } |