summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2019-03-24 04:41:25 +0300
committerRebecca Worledge <rebecca.worledge@theqtcompany.com>2019-03-25 16:40:09 +0000
commite3950d7e2e4dbd13cc586aeba9a403ce6b4141fe (patch)
tree5832952b9c9f464ca0ea605529e9ad014bfd63de
parente0283658a9761f169cfb8b3339747c54a30fbf0b (diff)
Get rid of redundant AsConst
the `other` is a const-ref, thus `other.m_children` won't detach Change-Id: I9cff8ff339eeb71a4ed5be2e01b4bf4780d330fa Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Rebecca Worledge <rebecca.worledge@theqtcompany.com>
-rw-r--r--src/bodymovin/bmbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bodymovin/bmbase.cpp b/src/bodymovin/bmbase.cpp
index 859137b..24548f4 100644
--- a/src/bodymovin/bmbase.cpp
+++ b/src/bodymovin/bmbase.cpp
@@ -46,7 +46,7 @@ BMBase::BMBase(const BMBase &other)
m_hidden = other.m_hidden;
m_name = other.m_name;
m_autoOrient = other.m_autoOrient;
- for (BMBase *child : qAsConst(other.m_children)) {
+ for (BMBase *child : other.m_children) {
BMBase *clone = child->clone();
clone->setParent(this);
addChild(clone);