From 681f019ac3642fc6e2ff89c7eddc92482b729695 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sun, 4 Jun 2017 12:49:01 -0400 Subject: [PATCH] platforms remove extra semicolons --- src/platforms/posix/drivers/bebop_flow/video_device.h | 2 +- src/platforms/posix/drivers/gyrosim/gyrosim.cpp | 2 +- src/platforms/posix/tests/hello/hello_example.h | 4 ++-- src/platforms/posix/tests/hrt_test/hrt_test.h | 4 ++-- src/platforms/posix/tests/muorb/muorb_test_example.h | 4 ++-- .../posix/tests/vcdev_test/vcdevtest_example.cpp | 2 +- .../posix/tests/vcdev_test/vcdevtest_example.h | 2 +- src/platforms/posix/tests/wqueue/wqueue_test.h | 2 +- src/platforms/px4_message.h | 2 +- src/platforms/px4_parameter.h | 6 +++--- src/platforms/px4_publisher.h | 10 +++++----- src/platforms/px4_subscriber.h | 10 +++++----- src/platforms/qurt/tests/hello/hello_example.h | 4 ++-- src/platforms/qurt/tests/muorb/muorb_test_example.h | 4 ++-- 14 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/platforms/posix/drivers/bebop_flow/video_device.h b/src/platforms/posix/drivers/bebop_flow/video_device.h index 8ed07cb2c8..8525a7e891 100644 --- a/src/platforms/posix/drivers/bebop_flow/video_device.h +++ b/src/platforms/posix/drivers/bebop_flow/video_device.h @@ -56,7 +56,7 @@ class VideoDevice { public: VideoDevice(char const *dev_name, uint32_t n_buffers) : - _fd(-1), _dev_name(dev_name), _n_buffers(n_buffers), _buffers(nullptr) {}; + _fd(-1), _dev_name(dev_name), _n_buffers(n_buffers), _buffers(nullptr) {} ~VideoDevice() = default; diff --git a/src/platforms/posix/drivers/gyrosim/gyrosim.cpp b/src/platforms/posix/drivers/gyrosim/gyrosim.cpp index eda0540cc5..8e647453df 100644 --- a/src/platforms/posix/drivers/gyrosim/gyrosim.cpp +++ b/src/platforms/posix/drivers/gyrosim/gyrosim.cpp @@ -291,7 +291,7 @@ public: protected: friend class GYROSIM; - virtual void _measure() {}; + virtual void _measure() {} private: GYROSIM *_parent; orb_advert_t _gyro_topic; diff --git a/src/platforms/posix/tests/hello/hello_example.h b/src/platforms/posix/tests/hello/hello_example.h index bf589996d1..64c82b13c2 100644 --- a/src/platforms/posix/tests/hello/hello_example.h +++ b/src/platforms/posix/tests/hello/hello_example.h @@ -44,9 +44,9 @@ class HelloExample { public: - HelloExample() {}; + HelloExample() {} - ~HelloExample() {}; + ~HelloExample() {} int main(); diff --git a/src/platforms/posix/tests/hrt_test/hrt_test.h b/src/platforms/posix/tests/hrt_test/hrt_test.h index ac4450e919..0d63dee810 100644 --- a/src/platforms/posix/tests/hrt_test/hrt_test.h +++ b/src/platforms/posix/tests/hrt_test/hrt_test.h @@ -44,9 +44,9 @@ class HRTTest { public: - HRTTest() {}; + HRTTest() {} - ~HRTTest() {}; + ~HRTTest() {} int main(); diff --git a/src/platforms/posix/tests/muorb/muorb_test_example.h b/src/platforms/posix/tests/muorb/muorb_test_example.h index f706cbaf89..ab3743d2d7 100644 --- a/src/platforms/posix/tests/muorb/muorb_test_example.h +++ b/src/platforms/posix/tests/muorb/muorb_test_example.h @@ -46,9 +46,9 @@ class MuorbTestExample { public: - MuorbTestExample() {}; + MuorbTestExample() {} - ~MuorbTestExample() {}; + ~MuorbTestExample() {} int main(); diff --git a/src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp b/src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp index 462544e1f9..5e4ea85aa4 100644 --- a/src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp +++ b/src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp @@ -105,7 +105,7 @@ public: VCDevNode() : CDev("vcdevtest", TESTDEV), _is_open_for_write(false), - _write_offset(0) {}; + _write_offset(0) {} ~VCDevNode() {} diff --git a/src/platforms/posix/tests/vcdev_test/vcdevtest_example.h b/src/platforms/posix/tests/vcdev_test/vcdevtest_example.h index a1cc325f00..13c91eb0b9 100644 --- a/src/platforms/posix/tests/vcdev_test/vcdevtest_example.h +++ b/src/platforms/posix/tests/vcdev_test/vcdevtest_example.h @@ -46,7 +46,7 @@ class VCDevNode; class VCDevExample { public: - VCDevExample() : _node(0) {}; + VCDevExample() : _node(0) {} ~VCDevExample(); diff --git a/src/platforms/posix/tests/wqueue/wqueue_test.h b/src/platforms/posix/tests/wqueue/wqueue_test.h index 56e66a0b1b..a4b3958912 100644 --- a/src/platforms/posix/tests/wqueue/wqueue_test.h +++ b/src/platforms/posix/tests/wqueue/wqueue_test.h @@ -54,7 +54,7 @@ public: memset(&_hpwork, 0, sizeof(_hpwork)); }; - ~WQueueTest() {}; + ~WQueueTest() {} int main(); diff --git a/src/platforms/px4_message.h b/src/platforms/px4_message.h index 499a5dd8b1..0192716135 100644 --- a/src/platforms/px4_message.h +++ b/src/platforms/px4_message.h @@ -66,7 +66,7 @@ public: _data(msg) {} - virtual ~PX4Message() {}; + virtual ~PX4Message() {} virtual M &data() {return _data;} virtual const M &data() const {return _data;} diff --git a/src/platforms/px4_parameter.h b/src/platforms/px4_parameter.h index 1376320b1c..f22e614767 100644 --- a/src/platforms/px4_parameter.h +++ b/src/platforms/px4_parameter.h @@ -61,7 +61,7 @@ public: _value(value) {} - virtual ~ParameterBase() {}; + virtual ~ParameterBase() {} /** * Update the parameter value and return the value @@ -95,7 +95,7 @@ public: update(); } - ~Parameter() {}; + ~Parameter() {} /** * Update the parameter value @@ -128,7 +128,7 @@ public: update(); } - ~Parameter() {}; + ~Parameter() {} /** * Update the parameter value diff --git a/src/platforms/px4_publisher.h b/src/platforms/px4_publisher.h index fb9ec50e10..9fbf6e962e 100644 --- a/src/platforms/px4_publisher.h +++ b/src/platforms/px4_publisher.h @@ -57,8 +57,8 @@ namespace px4 class __EXPORT PublisherBase { public: - PublisherBase() {}; - ~PublisherBase() {}; + PublisherBase() {} + ~PublisherBase() {} }; /** @@ -68,8 +68,8 @@ template class __EXPORT Publisher { public: - Publisher() {}; - ~Publisher() {}; + Publisher() {} + ~Publisher() {} virtual int publish(const T &msg) = 0; }; @@ -90,7 +90,7 @@ public: kQueueSizeDefault)) {} - ~PublisherROS() {}; + ~PublisherROS() {} /** Publishes msg * @param msg the message which is published to the topic diff --git a/src/platforms/px4_subscriber.h b/src/platforms/px4_subscriber.h index 59cfa5a191..004d63a124 100644 --- a/src/platforms/px4_subscriber.h +++ b/src/platforms/px4_subscriber.h @@ -62,8 +62,8 @@ namespace px4 class __EXPORT SubscriberBase { public: - SubscriberBase() {}; - virtual ~SubscriberBase() {}; + SubscriberBase() {} + virtual ~SubscriberBase() {} }; @@ -78,7 +78,7 @@ public: Subscriber() : SubscriberBase(), _msg_current() - {}; + {} virtual ~Subscriber() {} @@ -126,7 +126,7 @@ public: _ros_sub(rnh->subscribe(T::handle(), kQueueSizeDefault, &SubscriberROS::callback, this)) {} - virtual ~SubscriberROS() {}; + virtual ~SubscriberROS() {} protected: static const uint32_t kQueueSizeDefault = 1; /**< Size of queue for ROS */ @@ -258,7 +258,7 @@ public: _cbf(cbf) {} - virtual ~SubscriberUORBCallback() {}; + virtual ~SubscriberUORBCallback() {} /** * Update Subscription diff --git a/src/platforms/qurt/tests/hello/hello_example.h b/src/platforms/qurt/tests/hello/hello_example.h index bf589996d1..64c82b13c2 100644 --- a/src/platforms/qurt/tests/hello/hello_example.h +++ b/src/platforms/qurt/tests/hello/hello_example.h @@ -44,9 +44,9 @@ class HelloExample { public: - HelloExample() {}; + HelloExample() {} - ~HelloExample() {}; + ~HelloExample() {} int main(); diff --git a/src/platforms/qurt/tests/muorb/muorb_test_example.h b/src/platforms/qurt/tests/muorb/muorb_test_example.h index aea7646bc9..f2dedbb9b2 100644 --- a/src/platforms/qurt/tests/muorb/muorb_test_example.h +++ b/src/platforms/qurt/tests/muorb/muorb_test_example.h @@ -40,8 +40,8 @@ class MuorbTestExample { public: - MuorbTestExample() {}; - ~MuorbTestExample() {}; + MuorbTestExample() {} + ~MuorbTestExample() {} int main();