diff options
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; } } |