summaryrefslogtreecommitdiffstats
path: root/src/datavisualization
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-04-01 21:38:30 -0700
committerThiago Macieira <thiago.macieira@intel.com>2017-04-03 04:48:44 +0000
commit211a86665f4cdadc8a20534f7cc09c71c9d1112e (patch)
tree2c99ceac014e43f65b9beebd68c6fa5a7c156c11 /src/datavisualization
parent1a4d36afc821d745fe304f222e73d6c2fa249afa (diff)
Fix warning about member initialization out of order
Instead of fixing the order in the constructor, let's fix the order of the declarations to follow the rule of thumb to avoid padding holes. q3dlight.cpp:107:5: warning: field 'q_ptr' will be initialized after field 'm_automaticLight' [-Wreorder] Change-Id: I27b55fdf514247549455fffd14b17abe78cbad28 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/datavisualization')
-rw-r--r--src/datavisualization/engine/q3dlight_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datavisualization/engine/q3dlight_p.h b/src/datavisualization/engine/q3dlight_p.h
index afb3330b..6348deb9 100644
--- a/src/datavisualization/engine/q3dlight_p.h
+++ b/src/datavisualization/engine/q3dlight_p.h
@@ -57,8 +57,8 @@ public:
void sync(Q3DLight &other);
public:
- bool m_automaticLight;
Q3DLight *q_ptr;
+ bool m_automaticLight;
};
QT_END_NAMESPACE_DATAVISUALIZATION