aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-09-28 17:29:50 +0200
committerEike Ziller <eike.ziller@qt.io>2020-10-08 10:38:47 +0000
commit3ee70780b4b61fe10a56871916a42b4e4f06941d (patch)
treeff5ef2f6180cfe590f7c9bc23bbd34d2f4dc5b03 /src/plugins/scxmleditor
parentcf460578ff205517f85ace5056dc91c063bef6c7 (diff)
Qt6: Sprinkle QLatin1Strings for QStringView comparisons
Task-number: QTCREATORBUG-24098 Change-Id: I2fb79bcfd0537a6704a1ee8db840401d6beca7a0 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor')
-rw-r--r--src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp2
-rw-r--r--src/plugins/scxmleditor/plugin_interface/scxmltag.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp b/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
index 74f288e8990..a0c677ba464 100644
--- a/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
+++ b/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
@@ -214,7 +214,7 @@ bool ScxmlDocument::load(QIODevice *io)
continue;
if (token == QXmlStreamReader::StartElement) {
- if (xml.name() == "scxml") {
+ if (xml.name() == QLatin1String("scxml")) {
// Get and add namespaces
QXmlStreamNamespaceDeclarations ns = xml.namespaceDeclarations();
for (int i = 0; i < ns.count(); ++i)
diff --git a/src/plugins/scxmleditor/plugin_interface/scxmltag.cpp b/src/plugins/scxmleditor/plugin_interface/scxmltag.cpp
index 248eeff99a4..924f5127293 100644
--- a/src/plugins/scxmleditor/plugin_interface/scxmltag.cpp
+++ b/src/plugins/scxmleditor/plugin_interface/scxmltag.cpp
@@ -579,7 +579,7 @@ void ScxmlTag::readXml(QXmlStreamReader &xml, bool checkCopyId)
// Read and set attributes
QXmlStreamAttributes attributes = xml.attributes();
for (int i = 0; i < attributes.count(); ++i) {
- if (m_tagType == Scxml && attributes[i].qualifiedName() == "initial")
+ if (m_tagType == Scxml && attributes[i].qualifiedName() == QLatin1String("initial"))
scxmlInitial = attributes[i].value().toString();
else {
QString key = attributes[i].qualifiedName().toString();