mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 20:27:35 +08:00
orb uORB::DeviceMaster::_flavor: make it const, it's never changed
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user