Skip to content
Snippets Groups Projects
Commit 50c1eba3 authored by Alessandro Simovic's avatar Alessandro Simovic Committed by Beat Küng
Browse files

snapdragon: fixed compiler shadow warning, function name was identical as a variable name

parent cc41d8cc
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ bool SubscriptionArray::get(const struct orb_metadata *meta, uORB::Subscription<
{
// does it already exist?
for (int i = 0; i < _subscriptions_count; ++i) {
if (_subscriptions[i]->meta() == meta && _subscriptions[i]->instance() == instance) {
if (_subscriptions[i]->get_meta() == meta && _subscriptions[i]->get_instance() == instance) {
// 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]);
return true;
......
......@@ -84,9 +84,9 @@ public:
int getHandle() const { return _handle; }
const orb_metadata *meta() const { return _meta; }
const orb_metadata *get_meta() const { return _meta; }
unsigned instance() const { return _instance; }
unsigned get_instance() const { return _instance; }
protected:
const struct orb_metadata *_meta;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment