aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-07-04 13:37:21 +0200
committerMarc Mutz <[email protected]>2025-07-08 08:35:59 +0200
commit1732d57e1bb13fd8f44be0eab20f40dd1f3443a6 (patch)
tree2656c3936d7eb6c887e3b68dc4356fe99bfce19e
parenta6689facf0899a2ca52b1ba3414c8c37aee287da (diff)
QPhysicsCommand hierarchy: disable copy+moveHEADdev
A polymorphic class hierarchy should not be copyable, to avoid slicing. Amends the start of the public history of this module. Pick-to: 6.10 6.9 6.8 6.5 Change-Id: I3af834c0456d384d5b37275171d03164d0be4267 Reviewed-by: Jonas Karlsson <[email protected]>
-rw-r--r--src/quick3dphysics/qphysicscommands_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick3dphysics/qphysicscommands_p.h b/src/quick3dphysics/qphysicscommands_p.h
index 4853a7d..48e8a92 100644
--- a/src/quick3dphysics/qphysicscommands_p.h
+++ b/src/quick3dphysics/qphysicscommands_p.h
@@ -31,7 +31,9 @@ class QDynamicRigidBody;
class QPhysicsCommand
{
+ Q_DISABLE_COPY_MOVE(QPhysicsCommand)
public:
+ QPhysicsCommand() = default;
virtual ~QPhysicsCommand();
virtual void execute(const QDynamicRigidBody &rigidBody, physx::PxRigidBody &body) = 0;
};