Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 476a3cd7 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLAtin1String

parent 948317ae
......@@ -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);
......
......@@ -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"));
}
}
......
......@@ -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"));
}
}
......
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