diff --git a/src/libsync/abstractnetworkjob.cpp b/src/libsync/abstractnetworkjob.cpp index ef2dc75f48f58..b3b8eb6b13fbf 100644 --- a/src/libsync/abstractnetworkjob.cpp +++ b/src/libsync/abstractnetworkjob.cpp @@ -406,7 +406,7 @@ QString extractErrorMessage(const QByteArray &errorResponse) { QXmlStreamReader reader(errorResponse); reader.readNextStartElement(); - if (reader.name() != "error") { + if (reader.name() != QStringLiteral("error")) { return QString(); } diff --git a/src/libsync/networkjobs.cpp b/src/libsync/networkjobs.cpp index 335dd1eb548c2..dd7b463885bb6 100644 --- a/src/libsync/networkjobs.cpp +++ b/src/libsync/networkjobs.cpp @@ -289,21 +289,21 @@ bool LsColXMLParser::parse(const QByteArray &xml, QHash(currentTmpProperties); } currentTmpProperties.clear(); currentPropsHaveHttp200 = false; - } else if (reader.name() == "prop") { + } else if (reader.name() == QStringLiteral("prop")) { insideProp = false; } }