diff options
Diffstat (limited to 'src/plugins/scxmleditor/plugin_interface/undocommands.cpp')
-rw-r--r-- | src/plugins/scxmleditor/plugin_interface/undocommands.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/scxmleditor/plugin_interface/undocommands.cpp b/src/plugins/scxmleditor/plugin_interface/undocommands.cpp index b4bd0f75f9..c217a83cee 100644 --- a/src/plugins/scxmleditor/plugin_interface/undocommands.cpp +++ b/src/plugins/scxmleditor/plugin_interface/undocommands.cpp @@ -354,7 +354,8 @@ void ChangeFullNameSpaceCommand::makeIdMap(ScxmlTag *tag, QHash<QString, QString break; } - foreach (ScxmlTag *child, tag->allChildren()) { + const QVector<ScxmlTag *> children = tag->allChildren(); + for (ScxmlTag *child : children) { makeIdMap(child, map, use); } } @@ -380,7 +381,8 @@ void ChangeFullNameSpaceCommand::updateNameSpace(ScxmlTag *tag, const QHash<QStr tag->setAttribute(name, map[attr]); } - foreach (ScxmlTag *child, tag->allChildren()) { + const QVector<ScxmlTag *> children = tag->allChildren(); + for (ScxmlTag *child : children) { updateNameSpace(child, map); } } |