From d57a7df3b5ad731fe0bd4f9cd07b448955380e58 Mon Sep 17 00:00:00 2001 From: Felipe Magno de Almeida Date: Thu, 17 Jan 2019 11:31:06 +0000 Subject: [PATCH] eolian-cxx: Fix order of initialization Make order of code the same as the order of initialization. This avoids warnings efl-mono: Fix lots of warnings in tests Reviewed-by: Xavi Artigas Differential Revision: https://phab.enlightenment.org/D7633 --- src/lib/eolian_cxx/grammar/klass_def.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp index f69fca29d3..fc9d09519a 100644 --- a/src/lib/eolian_cxx/grammar/klass_def.hpp +++ b/src/lib/eolian_cxx/grammar/klass_def.hpp @@ -1061,11 +1061,12 @@ struct klass_def , std::string klass_get_name) : eolian_name(_eolian_name), cxx_name(_cxx_name) , namespaces(_namespaces) - , functions(_functions), properties(_properties), inherits(_inherits), type(_type), unit(unit) - , klass_get_name(klass_get_name) + , functions(_functions), properties(_properties), inherits(_inherits), type(_type) + , klass_get_name(klass_get_name), unit(unit) {} - klass_def(Eolian_Class const* klass, Eolian_Unit const* unit) : unit(unit) - , klass_get_name( ::eolian_class_c_get_function_name_get(klass)) + klass_def(Eolian_Class const* klass, Eolian_Unit const* unit) + : klass_get_name( ::eolian_class_c_get_function_name_get(klass)) + , unit(unit) { for(efl::eina::iterator namespace_iterator( ::eolian_class_namespaces_get(klass)) , namespace_last; namespace_iterator != namespace_last; ++namespace_iterator)