diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2019-03-24 04:41:25 +0300 |
---|---|---|
committer | Rebecca Worledge <rebecca.worledge@theqtcompany.com> | 2019-03-25 16:40:09 +0000 |
commit | e3950d7e2e4dbd13cc586aeba9a403ce6b4141fe (patch) | |
tree | 5832952b9c9f464ca0ea605529e9ad014bfd63de | |
parent | e0283658a9761f169cfb8b3339747c54a30fbf0b (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.cpp | 2 |
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); |