mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 17:53:35 +08:00
orb DeviceNode::filp_to_sd: make this method static
Makes it easier to see that no class members are accessed
This commit is contained in:
@@ -193,7 +193,7 @@ private:
|
||||
|
||||
private: // private class methods.
|
||||
|
||||
SubscriberData *filp_to_sd(struct file *filp)
|
||||
static SubscriberData *filp_to_sd(struct file *filp)
|
||||
{
|
||||
SubscriberData *sd = (SubscriberData *)(filp->f_priv);
|
||||
return sd;
|
||||
|
||||
@@ -129,7 +129,7 @@ private:
|
||||
const int _priority; /**< priority of topic */
|
||||
bool _published; /**< has ever data been published */
|
||||
|
||||
SubscriberData *filp_to_sd(device::file_t *filp);
|
||||
static SubscriberData *filp_to_sd(device::file_t *filp);
|
||||
|
||||
int32_t _subscriber_count;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user