aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2021-02-15 10:03:57 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2021-02-17 14:43:29 +0000
commit72d91dc94af1861c4374dab5698859149b21dbfd (patch)
tree3e51016b44c6a4db35fba150579e033bbdf2a274 /src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
parent1d27f894bb8454693ff5fc5979dda0d9090dc7a8 (diff)
Use qAsConst with non-const Qt containers in range-loops
... in various places Change-Id: Ic6c0c1b9437a1ed402105c7a14a1f5f9454a68d4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp')
-rw-r--r--src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp b/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
index 8e85ae8097..97aee68d45 100644
--- a/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
+++ b/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
@@ -170,7 +170,7 @@ bool ScxmlDocument::generateSCXML(QIODevice *io, ScxmlTag *tag) const
ScxmlTag *ScxmlDocument::createScxmlTag()
{
auto tag = new ScxmlTag(Scxml, this);
- for (ScxmlNamespace *ns : m_namespaces) {
+ for (ScxmlNamespace *ns : qAsConst(m_namespaces)) {
QString prefix = ns->prefix();
if (prefix.isEmpty())
prefix = "xmlns";