aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-01-26 21:55:37 +0100
committerLaurent Montel <[email protected]>2018-01-26 21:55:37 +0100
commit35464c7fd3858d70c8ac0558ecece216e3a95398 (patch)
treeee84d9250a7135a81693eb635e0a96dc2c353889
parent808b1f6c678ec61c2c2d4088d39234f9bbde163d (diff)
Use QLatin1String
-rw-r--r--src/loginjob.cpp2
-rw-r--r--src/rfccodecs.cpp2
-rw-r--r--tests/testimapidle.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/loginjob.cpp b/src/loginjob.cpp
index 2f41c48..eeb00aa 100644
--- a/src/loginjob.cpp
+++ b/src/loginjob.cpp
@@ -466,7 +466,7 @@ bool LoginJobPrivate::startAuthentication()
do {
qCDebug(KIMAP_LOG) << "Trying authmod" << authMode.toLatin1();
- result = sasl_client_start(conn, authMode.toLatin1().constData(), &client_interact, capabilities.contains(QStringLiteral("SASL-IR")) ? &out : nullptr, &outlen, &mechusing);
+ result = sasl_client_start(conn, authMode.toLatin1().constData(), &client_interact, capabilities.contains(QLatin1String("SASL-IR")) ? &out : nullptr, &outlen, &mechusing);
if (result == SASL_INTERACT) {
if (!sasl_interact()) {
diff --git a/src/rfccodecs.cpp b/src/rfccodecs.cpp
index 05fdd10..b517056 100644
--- a/src/rfccodecs.cpp
+++ b/src/rfccodecs.cpp
@@ -322,7 +322,7 @@ const QString KIMAP::decodeRFC2047String(const QString &str,
QString &language)
{
//do we have a rfc string
- if (!str.contains(QStringLiteral("=?"))) {
+ if (!str.contains(QLatin1String("=?"))) {
return str;
}
diff --git a/tests/testimapidle.cpp b/tests/testimapidle.cpp
index 0844341..37d032d 100644
--- a/tests/testimapidle.cpp
+++ b/tests/testimapidle.cpp
@@ -86,7 +86,7 @@ int main(int argc, char **argv)
qDebug() << capabilities->capabilities();
qDebug();
- Q_ASSERT(capabilities->capabilities().contains(QStringLiteral("IDLE")));
+ Q_ASSERT(capabilities->capabilities().contains(QLatin1String("IDLE")));
qDebug() << "Selecting INBOX:";
SelectJob *select = new SelectJob(&session);