diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2021-02-16 15:01:44 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2021-02-17 14:45:05 +0000 |
commit | 97a45f7512adddecff12d9f7b10b1fbd7cb853c2 (patch) | |
tree | dffbe5ca5dcd0c1b1d37c1feb7b1fc5b5a8100f7 /src/libs/modelinglib | |
parent | 72d91dc94af1861c4374dab5698859149b21dbfd (diff) |
Libs: Use qAsConst with non-const Qt containers in range-loops
Change-Id: I00d9f7c1634bbb62191470d58158e1fd150533c0
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/libs/modelinglib')
-rw-r--r-- | src/libs/modelinglib/qmt/diagram_scene/diagramscenemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/modelinglib/qmt/diagram_scene/diagramscenemodel.cpp b/src/libs/modelinglib/qmt/diagram_scene/diagramscenemodel.cpp index 7b866490c43..60f6abd3f7b 100644 --- a/src/libs/modelinglib/qmt/diagram_scene/diagramscenemodel.cpp +++ b/src/libs/modelinglib/qmt/diagram_scene/diagramscenemodel.cpp @@ -829,7 +829,7 @@ void DiagramSceneModel::onEndRemoveElement(int row, const MDiagram *diagram) Q_UNUSED(diagram) QMT_CHECK(m_busyState == RemoveElement); // update elements from store (see above) - for (const Uid &end_uid : m_relationEndsUid) { + for (const Uid &end_uid : qAsConst(m_relationEndsUid)) { DElement *dEnd = m_diagramController->findElement(end_uid, diagram); if (dEnd) updateGraphicsItem(graphicsItem(dEnd), dEnd); |