From c61a5acd59bd01380967ac54c3d40017a3bbed38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 22 Apr 2016 16:59:06 +0200 Subject: [PATCH] orb DeviceNode::filp_to_sd: make this method static Makes it easier to see that no class members are accessed --- src/modules/uORB/uORBDevices_nuttx.hpp | 2 +- src/modules/uORB/uORBDevices_posix.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/uORB/uORBDevices_nuttx.hpp b/src/modules/uORB/uORBDevices_nuttx.hpp index 0401b0db28..0844392d66 100644 --- a/src/modules/uORB/uORBDevices_nuttx.hpp +++ b/src/modules/uORB/uORBDevices_nuttx.hpp @@ -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; diff --git a/src/modules/uORB/uORBDevices_posix.hpp b/src/modules/uORB/uORBDevices_posix.hpp index fbaf28a30a..a7e5a5def4 100644 --- a/src/modules/uORB/uORBDevices_posix.hpp +++ b/src/modules/uORB/uORBDevices_posix.hpp @@ -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;