From 5e9864994c854d1d503df53dfa13a71d1e99d990 Mon Sep 17 00:00:00 2001 From: torsten Date: Thu, 20 Aug 2009 21:44:32 +0000 Subject: [PATCH] fix warnings (order of initialization) --- src/Autopilot/xmlauto.cxx | 12 ++++++------ src/Autopilot/xmlauto.hxx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Autopilot/xmlauto.cxx b/src/Autopilot/xmlauto.cxx index 1d6e81361..6761cddf7 100644 --- a/src/Autopilot/xmlauto.cxx +++ b/src/Autopilot/xmlauto.cxx @@ -152,15 +152,15 @@ double FGXMLAutoInput::get_value() } FGXMLAutoComponent::FGXMLAutoComponent( SGPropertyNode * node ) : - debug(false), - name(""), + _condition( NULL ), enable_prop( NULL ), - passive_mode( fgGetNode("/autopilot/locks/passive-mode", true) ), enable_value( NULL ), + passive_mode( fgGetNode("/autopilot/locks/passive-mode", true) ), honor_passive( false ), - enabled( false ), - _condition( NULL ), - feedback_if_disabled( false ) + name(""), + feedback_if_disabled( false ), + debug(false), + enabled( false ) { int i; SGPropertyNode *prop; diff --git a/src/Autopilot/xmlauto.hxx b/src/Autopilot/xmlauto.hxx index 570e30251..bbe122631 100644 --- a/src/Autopilot/xmlauto.hxx +++ b/src/Autopilot/xmlauto.hxx @@ -62,9 +62,9 @@ private: public: FGXMLAutoInput( SGPropertyNode_ptr node = NULL, double value = 0.0, double offset = 0.0, double scale = 1.0 ) : - property(NULL), value(0.0), abs(false), + property(NULL), offset(NULL), scale(NULL), min(NULL), -- 2.39.5