Commit 8a909256 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QLatin1Char('/') here

parent a9d405e8
...@@ -82,7 +82,7 @@ QString FilterClawsMail::localMailDirPath() ...@@ -82,7 +82,7 @@ QString FilterClawsMail::localMailDirPath()
if (e.tagName() == QLatin1String("folder")) { if (e.tagName() == QLatin1String("folder")) {
if (e.hasAttribute(QStringLiteral("type"))) { if (e.hasAttribute(QStringLiteral("type"))) {
if (e.attribute(QStringLiteral("type")) == QLatin1String("mh")) { if (e.attribute(QStringLiteral("type")) == QLatin1String("mh")) {
return QDir::homePath() + QDir::separator() + e.attribute(QStringLiteral("path")); return QDir::homePath() + QLatin1Char('/') + e.attribute(QStringLiteral("path"));
} }
} }
} }
......
...@@ -62,7 +62,7 @@ void FilterOpera::importRecursive(const QDir &mailDir, const QString &accountNam ...@@ -62,7 +62,7 @@ void FilterOpera::importRecursive(const QDir &mailDir, const QString &accountNam
if (numSubDirs > 0) { if (numSubDirs > 0) {
QStringList::ConstIterator end(rootSubDirs.constEnd()); QStringList::ConstIterator end(rootSubDirs.constEnd());
for (QStringList::ConstIterator filename = rootSubDirs.constBegin(); filename != end; ++filename) { for (QStringList::ConstIterator filename = rootSubDirs.constBegin(); filename != end; ++filename) {
QDir importDir(mailDir.path() + QDir::separator() + *filename); QDir importDir(mailDir.path() + QLatin1Char('/') + *filename);
const QStringList files = importDir.entryList(QStringList(QStringLiteral("*.[mM][bB][sS]")), QDir::Files, QDir::Name); const QStringList files = importDir.entryList(QStringList(QStringLiteral("*.[mM][bB][sS]")), QDir::Files, QDir::Name);
if (files.isEmpty()) { if (files.isEmpty()) {
importRecursive(importDir, accountName.isEmpty() ? *filename : accountName); importRecursive(importDir, accountName.isEmpty() ? *filename : accountName);
......
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