summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2021-08-31 09:16:29 -0700
committerThiago Macieira <thiago.macieira@intel.com>2021-08-31 13:17:50 -0700
commit7c7dcf124c6c482a7289b06b34b0c06ea590c30c (patch)
tree0b0baf85a38c58605d311cad6b73cc218e6f30d5
parentde40575ded93f6a3556685c72ecce20ee5beeb88 (diff)
QRayCasterHitData: Fix warning about uninitialized base
qraycasterhit.cpp:54:5: warning: base class ‘class QSharedData’ should be explicitly initialized in the copy constructor [-Wextra] Change-Id: Ie72b0dd0fbe84d2caae0fffd16a0705840f195e5 Reviewed-by: Mike Krus <mike.krus@kdab.com>
-rw-r--r--src/render/picking/qraycasterhit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/picking/qraycasterhit.cpp b/src/render/picking/qraycasterhit.cpp
index 1a253dfb5..86a6a1052 100644
--- a/src/render/picking/qraycasterhit.cpp
+++ b/src/render/picking/qraycasterhit.cpp
@@ -51,7 +51,7 @@ public:
QRayCasterHitData(QRayCasterHit::HitType type, Qt3DCore::QNodeId id, float distance,
const QVector3D &localIntersect, const QVector3D &worldIntersect,
uint primitiveIndex, uint v1 = 0, uint v2 = 0, uint v3 = 0);
- QRayCasterHitData(const QRayCasterHitData& other) : m_type(other.m_type), m_entityId(other.m_entityId), m_entity(other.m_entity),
+ QRayCasterHitData(const QRayCasterHitData& other) : QSharedData(), m_type(other.m_type), m_entityId(other.m_entityId), m_entity(other.m_entity),
m_distance(other.m_distance), m_localIntersection(other.m_localIntersection),
m_worldIntersection(other.m_worldIntersection), m_primitiveIndex(other.m_primitiveIndex),
m_vertex1Index(other.m_vertex1Index), m_vertex2Index(other.m_vertex2Index), m_vertex3Index(other.m_vertex3Index) { }