Commit 071cf62d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QLatin1Char

parent 510c17d2
...@@ -65,7 +65,7 @@ FilterKMailArchive::~FilterKMailArchive() ...@@ -65,7 +65,7 @@ FilterKMailArchive::~FilterKMailArchive()
// Can also return an empty string if this is no valid dir name // Can also return an empty string if this is no valid dir name
static QString folderNameForDirectoryName(const QString &dirName) static QString folderNameForDirectoryName(const QString &dirName)
{ {
Q_ASSERT(dirName.startsWith(QStringLiteral("."))); Q_ASSERT(dirName.startsWith(QLatin1Char('.')));
const QString end = QStringLiteral(".directory"); const QString end = QStringLiteral(".directory");
const int expectedIndex = dirName.length() - end.length(); const int expectedIndex = dirName.length() - end.length();
if (dirName.toLower().indexOf(end) != expectedIndex) { if (dirName.toLower().indexOf(end) != expectedIndex) {
...@@ -162,7 +162,7 @@ bool FilterKMailArchive::importDirectory(const KArchiveDirectory *directory, con ...@@ -162,7 +162,7 @@ bool FilterKMailArchive::importDirectory(const KArchiveDirectory *directory, con
const KArchiveDirectory *dir = static_cast<const KArchiveDirectory *>(entry); const KArchiveDirectory *dir = static_cast<const KArchiveDirectory *>(entry);
if (!dir->name().startsWith(QStringLiteral("."))) { if (!dir->name().startsWith(QLatin1Char('.'))) {
if (!importFolder(dir, folderPath + QLatin1Char('/') + dir->name())) { if (!importFolder(dir, folderPath + QLatin1Char('/') + dir->name())) {
return false; return false;
} }
......
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