From daebf9c155aaadccffe4e34735566c526d39c86e Mon Sep 17 00:00:00 2001 From: aeneev <54646918+aeneev@users.noreply.github.com> Date: Wed, 28 Aug 2019 15:50:38 -0700 Subject: [PATCH] Reorder fields initialization to match initialization order in .h file (#987) This change fixes -Wreorder warnings. More on -Wreorder: https://stackoverflow.com/questions/1828037/whats-the-point-of-g-wreorder --- gazebo_ros/src/gazebo_ros_api_plugin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gazebo_ros/src/gazebo_ros_api_plugin.cpp b/gazebo_ros/src/gazebo_ros_api_plugin.cpp index 1b53a8d01..c2c01a0b9 100644 --- a/gazebo_ros/src/gazebo_ros_api_plugin.cpp +++ b/gazebo_ros/src/gazebo_ros_api_plugin.cpp @@ -28,13 +28,13 @@ namespace gazebo { GazeboRosApiPlugin::GazeboRosApiPlugin() : - physics_reconfigure_initialized_(false), - world_created_(false), - stop_(false), plugin_loaded_(false), + stop_(false), pub_link_states_connection_count_(0), pub_model_states_connection_count_(0), - pub_clock_frequency_(0) + physics_reconfigure_initialized_(false), + pub_clock_frequency_(0), + world_created_(false) { robot_namespace_.clear(); }