forked from Archive/PX4-Autopilot
Forbid copy constructor in CDev
This commit is contained in:
parent
619433d369
commit
b0b6ee0644
|
@ -240,6 +240,7 @@ private:
|
||||||
* @param context Pointer to the interrupted context.
|
* @param context Pointer to the interrupted context.
|
||||||
*/
|
*/
|
||||||
static void dev_interrupt(int irq, void *context);
|
static void dev_interrupt(int irq, void *context);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -469,6 +470,10 @@ private:
|
||||||
* @return OK, or -errno on error.
|
* @return OK, or -errno on error.
|
||||||
*/
|
*/
|
||||||
int remove_poll_waiter(struct pollfd *fds);
|
int remove_poll_waiter(struct pollfd *fds);
|
||||||
|
|
||||||
|
/* do not allow copying this class */
|
||||||
|
CDev(const CDev&);
|
||||||
|
CDev operator=(const CDev&);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue