diff --git a/src/core/listjob.cpp b/src/core/listjob.cpp --- a/src/core/listjob.cpp +++ b/src/core/listjob.cpp @@ -117,7 +117,7 @@ itemURL = q->url(); filename = entry.stringValue(KIO::UDSEntry::UDS_NAME); Q_ASSERT(!filename.isEmpty()); // we'll recurse forever otherwise :) - if (itemURL.path() == QLatin1Char('/')) { + if (itemURL.path() == QLatin1String("/")) { itemURL.setPath(itemURL.path() + filename); } else { itemURL.setPath(itemURL.path() + '/' + filename); diff --git a/src/core/mkpathjob.cpp b/src/core/mkpathjob.cpp --- a/src/core/mkpathjob.cpp +++ b/src/core/mkpathjob.cpp @@ -45,7 +45,7 @@ for (; i < basePathComponents.count() && i < m_pathComponents.count(); ++i) { const QString pathComponent = m_pathComponents.at(i); if (pathComponent == basePathComponents.at(i)) { - if (m_url.path() == QLatin1Char('/')) { + if (m_url.path() == QLatin1String("/")) { m_url.setPath(m_url.path() + pathComponent); } else { m_url.setPath(m_url.path() + '/' + pathComponent); @@ -64,7 +64,7 @@ for (; i < m_pathComponents.count(); ++i) { const QString localFile = m_url.toLocalFile(); QString testDir; - if (localFile == QLatin1Char('/')) { + if (localFile == QLatin1String("/")) { testDir = localFile + m_pathComponents.at(i); } else { testDir = localFile + '/' + m_pathComponents.at(i);