summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-01-24 22:32:12 +0100
committerLaurent Montel <[email protected]>2018-01-24 22:32:12 +0100
commit476a3cd71ed34585b9c80f77ccffe81e951d3487 (patch)
tree133a437542eac6720fd1804f7275d471dc1249a3
parent948317ae9d8c6e5a4f9037f6091f800cbd059773 (diff)
Use QLAtin1String
-rw-r--r--src/mailimporter/filters/filterevolution.cpp4
-rw-r--r--src/mailimporter/filters/filterevolution_v2.cpp8
-rw-r--r--src/mailimporter/filters/filterthunderbird.cpp8
3 files changed, 10 insertions, 10 deletions
diff --git a/src/mailimporter/filters/filterevolution.cpp b/src/mailimporter/filters/filterevolution.cpp
index 3c6863c..779a959 100644
--- a/src/mailimporter/filters/filterevolution.cpp
+++ b/src/mailimporter/filters/filterevolution.cpp
@@ -150,7 +150,7 @@ void FilterEvolution::importMBox(const QString &mboxName, const QString &rootDir
if (mboxName.length() > 20) {
QString tmp_info = mboxName;
tmp_info = tmp_info.replace(mailDir(), QStringLiteral(".."));
- if (tmp_info.contains(QStringLiteral("subfolders/"))) {
+ if (tmp_info.contains(QLatin1String("subfolders/"))) {
tmp_info.remove(QStringLiteral("subfolders/"));
}
filterInfo()->setFrom(tmp_info);
@@ -158,7 +158,7 @@ void FilterEvolution::importMBox(const QString &mboxName, const QString &rootDir
} else {
filterInfo()->setFrom(mboxName);
}
- if (targetDir.contains(QStringLiteral("subfolders/"))) {
+ if (targetDir.contains(QLatin1String("subfolders/"))) {
QString tmp_info = targetDir;
tmp_info.remove(QStringLiteral("subfolders/"));
filterInfo()->setTo(tmp_info);
diff --git a/src/mailimporter/filters/filterevolution_v2.cpp b/src/mailimporter/filters/filterevolution_v2.cpp
index 068340c..1b04f93 100644
--- a/src/mailimporter/filters/filterevolution_v2.cpp
+++ b/src/mailimporter/filters/filterevolution_v2.cpp
@@ -206,7 +206,7 @@ void FilterEvolution_v2::importMBox(const QString &mboxName, const QString &root
if (mboxName.length() > 20) {
QString tmp_info = mboxName;
tmp_info = tmp_info.replace(mailDir(), QStringLiteral("../"));
- if (tmp_info.contains(QStringLiteral(".sbd"))) {
+ if (tmp_info.contains(QLatin1String(".sbd"))) {
tmp_info.remove(QStringLiteral(".sbd"));
}
filterInfo()->setFrom(tmp_info);
@@ -214,7 +214,7 @@ void FilterEvolution_v2::importMBox(const QString &mboxName, const QString &root
filterInfo()->setFrom(mboxName);
}
- if (targetDir.contains(QStringLiteral(".sbd"))) {
+ if (targetDir.contains(QLatin1String(".sbd"))) {
QString tmp_info = targetDir;
tmp_info.remove(QStringLiteral(".sbd"));
filterInfo()->setTo(tmp_info);
@@ -253,13 +253,13 @@ void FilterEvolution_v2::importMBox(const QString &mboxName, const QString &root
QString destFolder;
QString _targetDir = targetDir;
if (!targetDir.isNull()) {
- if (_targetDir.contains(QStringLiteral(".sbd"))) {
+ if (_targetDir.contains(QLatin1String(".sbd"))) {
_targetDir.remove(QStringLiteral(".sbd"));
}
destFolder += QStringLiteral("Evolution-Import/") + _targetDir + QLatin1Char('/') + filenameInfo.completeBaseName(); // mboxName;
} else {
destFolder = QStringLiteral("Evolution-Import/") + rootDir;
- if (destFolder.contains(QStringLiteral(".sbd"))) {
+ if (destFolder.contains(QLatin1String(".sbd"))) {
destFolder.remove(QStringLiteral(".sbd"));
}
}
diff --git a/src/mailimporter/filters/filterthunderbird.cpp b/src/mailimporter/filters/filterthunderbird.cpp
index 47d5ff5..6823dc3 100644
--- a/src/mailimporter/filters/filterthunderbird.cpp
+++ b/src/mailimporter/filters/filterthunderbird.cpp
@@ -294,14 +294,14 @@ void FilterThunderbird::importMBox(const QString &mboxName, const QString &rootD
if (mboxName.length() > 20) {
QString tmp_info = mboxName;
tmp_info = tmp_info.replace(mailDir(), QStringLiteral("../"));
- if (tmp_info.contains(QStringLiteral(".sbd"))) {
+ if (tmp_info.contains(QLatin1String(".sbd"))) {
tmp_info.remove(QStringLiteral(".sbd"));
}
filterInfo()->setFrom(tmp_info);
} else {
filterInfo()->setFrom(mboxName);
}
- if (targetDir.contains(QStringLiteral(".sbd"))) {
+ if (targetDir.contains(QLatin1String(".sbd"))) {
QString tmp_info = targetDir;
tmp_info.remove(QStringLiteral(".sbd"));
filterInfo()->setTo(tmp_info);
@@ -340,13 +340,13 @@ void FilterThunderbird::importMBox(const QString &mboxName, const QString &rootD
QString destFolder;
QString _targetDir = targetDir;
if (!targetDir.isNull()) {
- if (_targetDir.contains(QStringLiteral(".sbd"))) {
+ if (_targetDir.contains(QLatin1String(".sbd"))) {
_targetDir.remove(QStringLiteral(".sbd"));
}
destFolder += defaultInstallFolder() + _targetDir + QLatin1Char('/') + filenameInfo.completeBaseName();// mboxName;
} else {
destFolder = defaultInstallFolder() + rootDir;
- if (destFolder.contains(QStringLiteral(".sbd"))) {
+ if (destFolder.contains(QLatin1String(".sbd"))) {
destFolder.remove(QStringLiteral(".sbd"));
}
}