From 5cf78da7d77f8af855872fb9e7d0762f744476ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 22 Apr 2016 17:00:20 +0200 Subject: [PATCH] orb uORB::DeviceMaster::_flavor: make it const, it's never changed --- 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 0844392d66..1519b06a82 100644 --- a/src/modules/uORB/uORBDevices_nuttx.hpp +++ b/src/modules/uORB/uORBDevices_nuttx.hpp @@ -242,7 +242,7 @@ public: static uORB::DeviceNode *GetDeviceNode(const char *node_name); virtual int ioctl(struct file *filp, int cmd, unsigned long arg); private: - Flavor _flavor; + const Flavor _flavor; static ORBMap _node_map; }; diff --git a/src/modules/uORB/uORBDevices_posix.hpp b/src/modules/uORB/uORBDevices_posix.hpp index a7e5a5def4..053b0ed756 100644 --- a/src/modules/uORB/uORBDevices_posix.hpp +++ b/src/modules/uORB/uORBDevices_posix.hpp @@ -175,7 +175,7 @@ public: virtual int ioctl(device::file_t *filp, int cmd, unsigned long arg); private: - Flavor _flavor; + const Flavor _flavor; static std::map _node_map; };