┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views
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/views
parentdfe713edf0c3b0b44ff18c19ebd4d616a9004f48 (diff)
GIT_SILENT: minor qstring optimization
Diffstat (limited to 'src/views')
-rw-r--r--src/views/renamedialog.cpp2
-rw-r--r--src/views/viewproperties.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/views/renamedialog.cpp b/src/views/renamedialog.cpp
index 5d329c3ce..96068564d 100644
--- a/src/views/renamedialog.cpp
+++ b/src/views/renamedialog.cpp
@@ -188,7 +188,7 @@ void RenameDialog::slotAccepted()
void RenameDialog::slotTextChanged(const QString& newName)
{
- bool enable = !newName.isEmpty() && (newName != QLatin1String("..")) && (newName != QLatin1String("."));
+ bool enable = !newName.isEmpty() && (newName != QLatin1String("..")) && (newName != QLatin1Char('.'));
if (enable && !m_renameOneItem) {
const int count = newName.count(QLatin1Char('#'));
if (count == 0) {
diff --git a/src/views/viewproperties.cpp b/src/views/viewproperties.cpp
index 48ed65471..e5f3a82c4 100644
--- a/src/views/viewproperties.cpp
+++ b/src/views/viewproperties.cpp
@@ -59,7 +59,7 @@ ViewProperties::ViewProperties(const QUrl& url) :
// we store the properties information in a local file.
if (useGlobalViewProps) {
m_filePath = destinationDir(QStringLiteral("global"));
- } else if (url.scheme().contains(QStringLiteral("search"))) {
+ } else if (url.scheme().contains(QLatin1String("search"))) {
m_filePath = destinationDir(QStringLiteral("search/")) + directoryHashForUrl(url);
useDetailsViewWithPath = true;
} else if (url.scheme() == QLatin1String("trash")) {