orb uORB::DeviceMaster::_flavor: make it const, it's never changed

This commit is contained in:
Beat Küng
2016-04-22 17:00:20 +02:00
committed by Lorenz Meier
parent c61a5acd59
commit 5cf78da7d7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
};
+1 -1
View File
@@ -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<std::string, uORB::DeviceNode *> _node_map;
};