summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-02-06 07:37:09 +0100
committerLaurent Montel <[email protected]>2018-02-06 07:37:09 +0100
commit5ca7dcca15f9b6dbe5628b4c69ec3063ecd4c85c (patch)
treed2b624d4c56ead7e97e05cff2180a5eaef7d26be
parent476a3cd71ed34585b9c80f77ccffe81e951d3487 (diff)
Use QLatin1String
-rw-r--r--src/mailimporter/filters/filterkmail_maildir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailimporter/filters/filterkmail_maildir.cpp b/src/mailimporter/filters/filterkmail_maildir.cpp
index b14b4fb..6a13fb7 100644
--- a/src/mailimporter/filters/filterkmail_maildir.cpp
+++ b/src/mailimporter/filters/filterkmail_maildir.cpp
@@ -168,7 +168,7 @@ void FilterKMail_maildir::importFiles(const QString &dirName)
for (QStringList::ConstIterator it = subFList.constBegin(); it != end; ++it) {
QString _cat = *it;
if (!(_cat == *mailFile)) {
- if (_cat.startsWith(QLatin1Char('.')) && _cat.endsWith(QStringLiteral(".directory"))) {
+ if (_cat.startsWith(QLatin1Char('.')) && _cat.endsWith(QLatin1String(".directory"))) {
_cat.remove(0, 1);
_cat.remove((_cat.length() - 10), 10);
} else if (_cat.startsWith(QLatin1Char('.'))) {
@@ -177,7 +177,7 @@ void FilterKMail_maildir::importFiles(const QString &dirName)
_path += QLatin1Char('/') + _cat;
}
}
- if (_path.endsWith(QStringLiteral("cur"))) {
+ if (_path.endsWith(QLatin1String("cur"))) {
_path.remove(_path.length() - 4, 4);
}
QString _info = _path;