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 5ca7dcca authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent 476a3cd7
......@@ -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;
......
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