diff options
author | Aurélien Brooke <aurelien@bahiasoft.fr> | 2024-01-12 13:29:23 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-01-13 09:46:12 +0000 |
commit | 2cf30109688fdfc420b85324ad417462a427fa9b (patch) | |
tree | 70c929beec31a8b0c052aaa01009823478f1ccaf | |
parent | 90f7e20838e46326b67a1a6aaad0626e09950fea (diff) |
QEntity: fix a std::move-from-const in destructor
The quadratic fix proposed by commit
cbffb898fc3625a04a9569e232c0f6231d4d3505 was actually not doing anything
because std::move() was applied to a const variable.
Pick-to: 6.6
Change-Id: Ieff6341493fd026ad45e0c3e26f0cdb4797b4a6a
Reviewed-by: Mike Krus <mike.krus@kdab.com>
(cherry picked from commit 4721805c04ef2acdb87f8b339f125b9a2ee7b392)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/core/nodes/qentity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/nodes/qentity.cpp b/src/core/nodes/qentity.cpp index f26da3bea..a77ec09ca 100644 --- a/src/core/nodes/qentity.cpp +++ b/src/core/nodes/qentity.cpp @@ -139,7 +139,7 @@ QEntity::QEntity(QEntityPrivate &dd, QNode *parent) QEntity::~QEntity() { // remove all component aggregations - Q_D(const QEntity); + Q_D(QEntity); // to avoid hammering m_components by repeated removeComponent() // calls below, move all contents out, so the removeOne() calls in // removeComponent() don't actually remove something: |