mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 08:23:34 +08:00
clang-tidy: partially fix hicpp-use-equals-delete
This commit is contained in:
@@ -64,7 +64,13 @@ public:
|
||||
* @param name Driver name
|
||||
* @param devname Device node name
|
||||
*/
|
||||
CDev(const char *devname);
|
||||
explicit CDev(const char *devname);
|
||||
|
||||
// no copy, assignment, move, move assignment
|
||||
CDev(const CDev &) = delete;
|
||||
CDev &operator=(const CDev &) = delete;
|
||||
CDev(CDev &&) = delete;
|
||||
CDev &operator=(CDev &&) = delete;
|
||||
|
||||
virtual ~CDev();
|
||||
|
||||
@@ -301,9 +307,6 @@ private:
|
||||
*/
|
||||
inline int remove_poll_waiter(px4_pollfd_struct_t *fds);
|
||||
|
||||
/* do not allow copying this class */
|
||||
CDev(const CDev &);
|
||||
CDev operator=(const CDev &);
|
||||
};
|
||||
|
||||
} // namespace cdev
|
||||
|
||||
Reference in New Issue
Block a user