forked from qt-creator/qt-creator
Use qAsConst with non-const Qt containers in range-loops
... in various places Change-Id: Ic6c0c1b9437a1ed402105c7a14a1f5f9454a68d4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user