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

Use QLAtin1String

parent c402b8ce
......@@ -133,7 +133,7 @@ void DavCollectionModifyJob::davJobFinished(KJob *job)
const QDomElement statusElement = Utils::firstChildElementNS(propstatElement, QStringLiteral("DAV:"), QStringLiteral("status"));
const QString statusText = statusElement.text();
if (statusText.contains(QStringLiteral("200"))) {
if (statusText.contains(QLatin1String("200"))) {
continue;
} else {
// Generic error
......
......@@ -238,7 +238,7 @@ void DavCollectionsFetchJob::collectionsFetchFinished(KJob *job)
for (int i = 0; i < propstats.length(); ++i) {
const QDomElement propstatCandidate = propstats.item(i).toElement();
const QDomElement statusElement = Utils::firstChildElementNS(propstatCandidate, QStringLiteral("DAV:"), QStringLiteral("status"));
if (statusElement.text().contains(QStringLiteral("200"))) {
if (statusElement.text().contains(QLatin1String("200"))) {
propstatElement = propstatCandidate;
}
}
......
......@@ -189,7 +189,7 @@ void DavItemsListJob::davJobFinished(KJob *job)
for (int i = 0; i < propstats.length(); ++i) {
const QDomElement propstatCandidate = propstats.item(i).toElement();
const QDomElement statusElement = Utils::firstChildElementNS(propstatCandidate, QStringLiteral("DAV:"), QStringLiteral("status"));
if (statusElement.text().contains(QStringLiteral("200"))) {
if (statusElement.text().contains(QLatin1String("200"))) {
propstatElement = propstatCandidate;
}
}
......
......@@ -142,7 +142,7 @@ void DavPrincipalSearchJob::principalCollectionSetSearchFinished(KJob *job)
for (int i = 0; i < propstats.length(); ++i) {
const QDomElement propstatCandidate = propstats.item(i).toElement();
const QDomElement statusElement = Utils::firstChildElementNS(propstatCandidate, QStringLiteral("DAV:"), QStringLiteral("status"));
if (statusElement.text().contains(QStringLiteral("200"))) {
if (statusElement.text().contains(QLatin1String("200"))) {
propstatElement = propstatCandidate;
}
}
......@@ -272,7 +272,7 @@ void DavPrincipalSearchJob::principalPropertySearchFinished(KJob *job)
for (int i = 0; i < propStatsEnd; ++i) {
const QDomElement propstatCandidate = propstats.item(i).toElement();
const QDomElement statusElement = Utils::firstChildElementNS(propstatCandidate, QStringLiteral("DAV:"), QStringLiteral("status"));
if (statusElement.text().contains(QStringLiteral("200"))) {
if (statusElement.text().contains(QLatin1String("200"))) {
propstatElement = propstatCandidate;
}
}
......
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