mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:23:33 +08:00
platforms remove extra semicolons
This commit is contained in:
committed by
Nuno Marques
parent
545ce9ae24
commit
681f019ac3
@@ -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;
|
||||
|
||||
|
||||
@@ -291,7 +291,7 @@ public:
|
||||
protected:
|
||||
friend class GYROSIM;
|
||||
|
||||
virtual void _measure() {};
|
||||
virtual void _measure() {}
|
||||
private:
|
||||
GYROSIM *_parent;
|
||||
orb_advert_t _gyro_topic;
|
||||
|
||||
@@ -44,9 +44,9 @@
|
||||
class HelloExample
|
||||
{
|
||||
public:
|
||||
HelloExample() {};
|
||||
HelloExample() {}
|
||||
|
||||
~HelloExample() {};
|
||||
~HelloExample() {}
|
||||
|
||||
int main();
|
||||
|
||||
|
||||
@@ -44,9 +44,9 @@
|
||||
class HRTTest
|
||||
{
|
||||
public:
|
||||
HRTTest() {};
|
||||
HRTTest() {}
|
||||
|
||||
~HRTTest() {};
|
||||
~HRTTest() {}
|
||||
|
||||
int main();
|
||||
|
||||
|
||||
@@ -46,9 +46,9 @@
|
||||
class MuorbTestExample
|
||||
{
|
||||
public:
|
||||
MuorbTestExample() {};
|
||||
MuorbTestExample() {}
|
||||
|
||||
~MuorbTestExample() {};
|
||||
~MuorbTestExample() {}
|
||||
|
||||
int main();
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ public:
|
||||
VCDevNode() :
|
||||
CDev("vcdevtest", TESTDEV),
|
||||
_is_open_for_write(false),
|
||||
_write_offset(0) {};
|
||||
_write_offset(0) {}
|
||||
|
||||
~VCDevNode() {}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class VCDevNode;
|
||||
class VCDevExample
|
||||
{
|
||||
public:
|
||||
VCDevExample() : _node(0) {};
|
||||
VCDevExample() : _node(0) {}
|
||||
|
||||
~VCDevExample();
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
memset(&_hpwork, 0, sizeof(_hpwork));
|
||||
};
|
||||
|
||||
~WQueueTest() {};
|
||||
~WQueueTest() {}
|
||||
|
||||
int main();
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
_data(msg)
|
||||
{}
|
||||
|
||||
virtual ~PX4Message() {};
|
||||
virtual ~PX4Message() {}
|
||||
|
||||
virtual M &data() {return _data;}
|
||||
virtual const M &data() const {return _data;}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -57,8 +57,8 @@ namespace px4
|
||||
class __EXPORT PublisherBase
|
||||
{
|
||||
public:
|
||||
PublisherBase() {};
|
||||
~PublisherBase() {};
|
||||
PublisherBase() {}
|
||||
~PublisherBase() {}
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -68,8 +68,8 @@ template <typename T>
|
||||
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
|
||||
|
||||
@@ -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<T>::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
|
||||
|
||||
@@ -44,9 +44,9 @@
|
||||
class HelloExample
|
||||
{
|
||||
public:
|
||||
HelloExample() {};
|
||||
HelloExample() {}
|
||||
|
||||
~HelloExample() {};
|
||||
~HelloExample() {}
|
||||
|
||||
int main();
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
class MuorbTestExample
|
||||
{
|
||||
public:
|
||||
MuorbTestExample() {};
|
||||
~MuorbTestExample() {};
|
||||
MuorbTestExample() {}
|
||||
~MuorbTestExample() {}
|
||||
|
||||
int main();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user