From: Shubham Jangra Date: Sat, 13 Oct 2018 12:31:43 +0000 (+0530) Subject: Use QLatin1Char instead of QLatin1String X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/b2e08712f2cf61a713ee6d85fe21aec034241114?ds=sidebyside Use QLatin1Char instead of QLatin1String --- diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index df2797d1d..40346c169 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -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);