From 701157c350ec0af54a5a37a0add0f8b762b9c152 Mon Sep 17 00:00:00 2001 From: DrZiplok Date: Mon, 2 May 2011 05:56:21 +0000 Subject: [PATCH] Re-order class members to avoid initializer-order warnings. git-svn-id: https://arducopter.googlecode.com/svn/trunk@2073 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/RC_Channel/RC_Channel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index d3264fda16..a21ef33770 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -12,6 +12,9 @@ /// @class RC_Channel /// @brief Object managing one RC channel class RC_Channel{ + private: + AP_Var_group _group; // must be before all vars to keep ctor init order correct + public: /// Constructor /// @@ -91,7 +94,6 @@ class RC_Channel{ float scale_output; private: - AP_Var_group _group; bool _filter; int8_t _reverse;