┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/private
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2019-09-08 09:33:41 +0200
committerLaurent Montel <[email protected]>2019-09-08 09:33:41 +0200
commit81065795b78e06ec679ec0589fba7082e777ef2a (patch)
tree67acbba969c750a69734326179815474be25f42b /src/kitemviews/private
parentdfe713edf0c3b0b44ff18c19ebd4d616a9004f48 (diff)
GIT_SILENT: minor qstring optimization
Diffstat (limited to 'src/kitemviews/private')
-rw-r--r--src/kitemviews/private/kbaloorolesprovider.cpp2
-rw-r--r--src/kitemviews/private/kitemlistkeyboardsearchmanager.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/kitemviews/private/kbaloorolesprovider.cpp b/src/kitemviews/private/kbaloorolesprovider.cpp
index f3671540d..8a2a64b31 100644
--- a/src/kitemviews/private/kbaloorolesprovider.cpp
+++ b/src/kitemviews/private/kbaloorolesprovider.cpp
@@ -155,5 +155,5 @@ QString KBalooRolesProvider::tagsFromValues(const QStringList& values) const
QCollator coll;
coll.setNumericMode(true);
std::sort(alphabeticalOrderTags.begin(), alphabeticalOrderTags.end(), [&](const QString& s1, const QString& s2){ return coll.compare(s1, s2) < 0; });
- return alphabeticalOrderTags.join(QStringLiteral(", "));
+ return alphabeticalOrderTags.join(QLatin1String(", "));
}
diff --git a/src/kitemviews/private/kitemlistkeyboardsearchmanager.cpp b/src/kitemviews/private/kitemlistkeyboardsearchmanager.cpp
index ffa92a1cf..8f18b92bf 100644
--- a/src/kitemviews/private/kitemlistkeyboardsearchmanager.cpp
+++ b/src/kitemviews/private/kitemlistkeyboardsearchmanager.cpp
@@ -46,7 +46,7 @@ void KItemListKeyboardSearchManager::addKeys(const QString& keys)
// Do not start a new search if the user pressed Space. Only add
// it to the search string if a search is in progress already.
- if (newSearch && keys == QLatin1String(" ")) {
+ if (newSearch && keys == QLatin1Char(' ')) {
return;
}