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

Use QLatin1String

parent 808b1f6c
......@@ -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()) {
......
......@@ -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;
}
......
......@@ -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);
......
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