Commit b58c3d0e authored by Stefan Brüns's avatar Stefan Brüns Committed by Christoph Cullmann
Browse files

Use QStringLiteral for verbatim QStrings in UDS entries

parent 46b39f1a
......@@ -704,7 +704,7 @@ void MANProtocol::stat( const QUrl& url)
entry.reserve(3);
entry.fastInsert(KIO::UDSEntry::UDS_NAME, title);
entry.fastInsert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFREG);
entry.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, QString::fromLatin1("text/html"));
entry.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, QStringLiteral("text/html"));
statEntry(entry);
finished();
......@@ -1385,7 +1385,7 @@ void MANProtocol::listDir(const QUrl &url)
uds_entry.reserve(3);
uds_entry.fastInsert(KIO::UDSEntry::UDS_NAME, *it);
uds_entry.fastInsert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFREG);
uds_entry.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, QString::fromLatin1("text/html"));
uds_entry.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, QStringLiteral("text/html"));
uds_entry_list.append( uds_entry );
}
......
......@@ -283,7 +283,7 @@ void MTPSlave::stat(const QUrl &url)
// root
if (pathItems.size() < 1) {
entry.reserve(4);
entry.fastInsert(UDSEntry::UDS_NAME, QLatin1String("mtp:///"));
entry.fastInsert(UDSEntry::UDS_NAME, QStringLiteral("mtp:///"));
entry.fastInsert(UDSEntry::UDS_FILE_TYPE, S_IFDIR);
entry.fastInsert(UDSEntry::UDS_ACCESS, S_IRUSR | S_IRGRP | S_IROTH | S_IXUSR | S_IXGRP | S_IXOTH);
entry.fastInsert(UDSEntry::UDS_MIME_TYPE, QStringLiteral("inode/directory"));
......
......@@ -20,8 +20,8 @@ public:
m_entry.fastInsert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
m_entry.fastInsert(KIO::UDSEntry::UDS_ACCESS, (S_IRUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH));
m_entry.fastInsert(KIO::UDSEntry::UDS_URL, url());
m_entry.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, QString::fromLatin1("application/x-smb-server"));
m_entry.fastInsert(KIO::UDSEntry::UDS_ICON_NAME, "network-server");
m_entry.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, QStringLiteral("application/x-smb-server"));
m_entry.fastInsert(KIO::UDSEntry::UDS_ICON_NAME, QStringLiteral("network-server"));
}
QString url()
......@@ -51,7 +51,7 @@ public:
{
m_entry.fastInsert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
m_entry.fastInsert(KIO::UDSEntry::UDS_ACCESS, (S_IRUSR | S_IRGRP | S_IROTH | S_IXUSR | S_IXGRP | S_IXOTH));
m_entry.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, QString::fromLatin1("application/x-smb-workgroup"));
m_entry.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, QStringLiteral("application/x-smb-workgroup"));
m_entry.fastInsert(KIO::UDSEntry::UDS_URL, url());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment