aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/device
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-07-15 18:22:38 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-07-15 18:22:38 +0200
commitb0b6ee06448c266dc97d8efbd48be548f4a57ee6 (patch)
tree911ea3e59d22c790ec8fa1cfe5de7495e4d269b4 /src/drivers/device
parent619433d36911b9c3923bae666d3632beb713935f (diff)
downloadpx4-firmware-b0b6ee06448c266dc97d8efbd48be548f4a57ee6.tar.gz
px4-firmware-b0b6ee06448c266dc97d8efbd48be548f4a57ee6.tar.bz2
px4-firmware-b0b6ee06448c266dc97d8efbd48be548f4a57ee6.zip
Forbid copy constructor in CDev
Diffstat (limited to 'src/drivers/device')
-rw-r--r--src/drivers/device/device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/device/device.h b/src/drivers/device/device.h
index 7df234cab..2d105bb79 100644
--- a/src/drivers/device/device.h
+++ b/src/drivers/device/device.h
@@ -240,6 +240,7 @@ private:
* @param context Pointer to the interrupted context.
*/
static void dev_interrupt(int irq, void *context);
+
};
/**
@@ -469,6 +470,10 @@ private:
* @return OK, or -errno on error.
*/
int remove_poll_waiter(struct pollfd *fds);
+
+ /* do not allow copying this class */
+ CDev(const CDev&);
+ CDev operator=(const CDev&);
};
/**