mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 15:13:34 +08:00
snapdragon: fixed compiler shadow warning, function name was identical as a variable name
This commit is contained in:
committed by
Beat Küng
parent
cc41d8ccab
commit
50c1eba392
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user