From c167df90380fdd99d1b56024c4de104a3f0a2f85 Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Tue, 25 Nov 2014 10:19:18 +0100 Subject: ros wrapper: small reordering --- src/platforms/px4_publisher.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/platforms/px4_publisher.h') diff --git a/src/platforms/px4_publisher.h b/src/platforms/px4_publisher.h index 799525190..72f69a5af 100644 --- a/src/platforms/px4_publisher.h +++ b/src/platforms/px4_publisher.h @@ -46,14 +46,14 @@ namespace px4 #if defined(__linux) || (defined(__APPLE__) && defined(__MACH__)) class Publisher { -private: - ros::Publisher _ros_pub; public: Publisher(ros::Publisher ros_pub) : _ros_pub(ros_pub) {} ~Publisher() {}; template int publish(const M &msg) { _ros_pub.publish(msg); return 0; } +private: + ros::Publisher _ros_pub; }; #else class Publisher -- cgit v1.2.3