]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Use QLatin1Char instead of QLatin1String
authorShubham Jangra <aryan100jangid@gmail.com>
Sat, 13 Oct 2018 12:31:43 +0000 (18:01 +0530)
committerShubham Jangra <aryan100jangid@gmail.com>
Thu, 18 Oct 2018 17:48:29 +0000 (23:18 +0530)
src/views/dolphinview.cpp

index df2797d1d0960028ee784eb3fd8052f233468811..40346c169c849bf7583b01708beda9ad3d26c523 100644 (file)
@@ -1569,7 +1569,7 @@ void DolphinView::slotRoleEditingFinished(int index, const QByteArray& role, con
     if (role == "text") {
         const KFileItem oldItem = m_model->fileItem(index);
         const QString newName = value.toString();
-        if (!newName.isEmpty() && newName != oldItem.text() && newName != QLatin1String(".") && newName != QLatin1String("..")) {
+        if (!newName.isEmpty() && newName != oldItem.text() && newName != QLatin1Char('.') && newName != QLatin1String("..")) {
             const QUrl oldUrl = oldItem.url();
 
             QUrl newUrl = oldUrl.adjusted(QUrl::RemoveFilename);