mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 06:03:33 +08:00
snapdragon: Applied camelCasing
This commit is contained in:
committed by
Beat Küng
parent
01ecb05341
commit
f8e4e82bba
@@ -85,7 +85,7 @@ bool SubscriptionArray::get(const struct orb_metadata *meta, uORB::Subscription<
|
|||||||
{
|
{
|
||||||
// does it already exist?
|
// does it already exist?
|
||||||
for (int i = 0; i < _subscriptions_count; ++i) {
|
for (int i = 0; i < _subscriptions_count; ++i) {
|
||||||
if (_subscriptions[i]->get_meta() == meta && _subscriptions[i]->get_instance() == instance) {
|
if (_subscriptions[i]->getMeta() == meta && _subscriptions[i]->getInstance() == instance) {
|
||||||
// we know the type must be correct, so we can use reinterpret_cast (dynamic_cast is not available)
|
// we know the type must be correct, so we can use reinterpret_cast (dynamic_cast is not available)
|
||||||
subscription = reinterpret_cast<uORB::Subscription<T>*>(_subscriptions[i]);
|
subscription = reinterpret_cast<uORB::Subscription<T>*>(_subscriptions[i]);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -84,9 +84,9 @@ public:
|
|||||||
|
|
||||||
int getHandle() const { return _handle; }
|
int getHandle() const { return _handle; }
|
||||||
|
|
||||||
const orb_metadata *get_meta() const { return _meta; }
|
const orb_metadata *getMeta() const { return _meta; }
|
||||||
|
|
||||||
unsigned get_instance() const { return _instance; }
|
unsigned getInstance() const { return _instance; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
const struct orb_metadata *_meta;
|
const struct orb_metadata *_meta;
|
||||||
|
|||||||
Reference in New Issue
Block a user