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

Use QLatin1String

parent 3a63970f
......@@ -295,7 +295,7 @@ identity Ispdb::createIdentity(const QDomElement &n)
QTextStream stream(&i.signature);
f.save(stream, 0);
i.signature = i.signature.trimmed();
if (i.signature.startsWith(QStringLiteral("<signature>"))) {
if (i.signature.startsWith(QLatin1String("<signature>"))) {
i.signature = i.signature.mid(11, i.signature.length() - 23);
i.signature = i.signature.trimmed();
}
......
......@@ -83,7 +83,7 @@ void Ldap::create()
basedn.replace(QLatin1Char('.'), QStringLiteral(",dc="));
if (!basedn.startsWith(QStringLiteral("dc="))) {
if (!basedn.startsWith(QLatin1String("dc="))) {
basedn.prepend(QStringLiteral("dc="));
}
......
......@@ -139,7 +139,7 @@ void ProviderPage::findDesktopAndSetAssistant(const QStringList &list)
{
for (const QString &file : list) {
qCDebug(ACCOUNTWIZARD_LOG) << file;
if (file.endsWith(QStringLiteral(".desktop"))) {
if (file.endsWith(QLatin1String(".desktop"))) {
qCDebug(ACCOUNTWIZARD_LOG) << "Yay, a desktop file!" << file;
Global::setAssistant(file);
m_newPageReady = true;
......
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