From ebd2cdb7a712190b1e6f6c4a1e82e780b8c55042 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Tue, 2 Jan 2018 09:12:38 +0100 Subject: [PATCH] SGPickAnimation: fix member initialization order --- simgear/scene/model/SGPickAnimation.cxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/simgear/scene/model/SGPickAnimation.cxx b/simgear/scene/model/SGPickAnimation.cxx index e5408007..6551500f 100644 --- a/simgear/scene/model/SGPickAnimation.cxx +++ b/simgear/scene/model/SGPickAnimation.cxx @@ -77,9 +77,9 @@ osg::Vec2d eventToWindowCoords(const osgGA::GUIEventAdapter& ea) SGPropertyNode* modelRoot, SGSharedPtr condition) : SGPickCallback(PriorityPanel), + _condition(condition), _repeatable(configNode->getBoolValue("repeatable", false)), - _repeatInterval(configNode->getDoubleValue("interval-sec", 0.1)), - _condition(condition) + _repeatInterval(configNode->getDoubleValue("interval-sec", 0.1)) { std::vector bindings; @@ -264,7 +264,8 @@ public: SGPropertyNode* modelRoot, osg::Group *node, SGSharedPtr condition) - : _node(node), _condition(condition) + : _condition(condition) + , _node(node) { SG_LOG(SG_INPUT, SG_DEBUG, "Configuring VNC callback"); const char *cornernames[3] = {"top-left", "top-right", "bottom-left"}; @@ -765,7 +766,8 @@ private: class SGKnobAnimation::UpdateCallback : public osg::NodeCallback { public: UpdateCallback(SGExpressiond const* animationValue, SGSharedPtr condition) : - _animationValue(animationValue), _condition(condition) + _condition(condition), + _animationValue(animationValue) { setName("SGKnobAnimation::UpdateCallback"); } @@ -899,9 +901,9 @@ class TouchPickCallback : public SGPickCallback { public: TouchPickCallback(const SGPropertyNode* configNode, SGPropertyNode* modelRoot) : + SGPickCallback(PriorityPanel), _repeatable(configNode->getBoolValue("repeatable", false)), - _repeatInterval(configNode->getDoubleValue("interval-sec", 0.1)), - SGPickCallback(PriorityPanel) + _repeatInterval(configNode->getDoubleValue("interval-sec", 0.1)) { std::vector bindings;