aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-01-25 13:59:56 +0100
committerLaurent Montel <[email protected]>2018-01-25 13:59:56 +0100
commit1c2339594cdb5562397462463290a841023cd295 (patch)
treebdf5ea2af3c26ea577c8233b346220a7f2be5903
parentc402b8ceac5e331640683b81f24ea032339675d8 (diff)
Use QLAtin1String
-rw-r--r--src/common/davcollectionmodifyjob.cpp2
-rw-r--r--src/common/davcollectionsfetchjob.cpp2
-rw-r--r--src/common/davitemslistjob.cpp2
-rw-r--r--src/common/davprincipalsearchjob.cpp4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/common/davcollectionmodifyjob.cpp b/src/common/davcollectionmodifyjob.cpp
index 3f3c9eb..e2be0d0 100644
--- a/src/common/davcollectionmodifyjob.cpp
+++ b/src/common/davcollectionmodifyjob.cpp
@@ -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
diff --git a/src/common/davcollectionsfetchjob.cpp b/src/common/davcollectionsfetchjob.cpp
index 3c90189..97d9e0b 100644
--- a/src/common/davcollectionsfetchjob.cpp
+++ b/src/common/davcollectionsfetchjob.cpp
@@ -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;
}
}
diff --git a/src/common/davitemslistjob.cpp b/src/common/davitemslistjob.cpp
index 4e178fd..5fb8169 100644
--- a/src/common/davitemslistjob.cpp
+++ b/src/common/davitemslistjob.cpp
@@ -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;
}
}
diff --git a/src/common/davprincipalsearchjob.cpp b/src/common/davprincipalsearchjob.cpp
index 2432f9d..699ba8b 100644
--- a/src/common/davprincipalsearchjob.cpp
+++ b/src/common/davprincipalsearchjob.cpp
@@ -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;
}
}