aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-07-16 09:05:50 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-07-16 09:05:50 +0200
commit654aaa0ca852b95e4e2bec5cf9b77ca3242d1d63 (patch)
tree1891a10a33beddf2c0ee76e1f9f5c24afbf68a95 /src/modules/systemlib
parentc5b13b7dbcb36f75d88fa24b879c3f202d01da38 (diff)
downloadpx4-firmware-654aaa0ca852b95e4e2bec5cf9b77ca3242d1d63.tar.gz
px4-firmware-654aaa0ca852b95e4e2bec5cf9b77ca3242d1d63.tar.bz2
px4-firmware-654aaa0ca852b95e4e2bec5cf9b77ca3242d1d63.zip
Mixer: forbid copy constructors due to ptr data members
Diffstat (limited to 'src/modules/systemlib')
-rw-r--r--src/modules/systemlib/mixer/mixer.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/modules/systemlib/mixer/mixer.h b/src/modules/systemlib/mixer/mixer.h
index 225570fa4..cdf60febc 100644
--- a/src/modules/systemlib/mixer/mixer.h
+++ b/src/modules/systemlib/mixer/mixer.h
@@ -231,6 +231,10 @@ protected:
static const char * skipline(const char *buf, unsigned &buflen);
private:
+
+ /* do not allow to copy due to prt data members */
+ Mixer(const Mixer&);
+ Mixer& operator=(const Mixer&);
};
/**
@@ -307,6 +311,10 @@ public:
private:
Mixer *_first; /**< linked list of mixers */
+
+ /* do not allow to copy due to pointer data members */
+ MixerGroup(const MixerGroup&);
+ MixerGroup operator=(const MixerGroup&);
};
/**
@@ -424,6 +432,10 @@ private:
mixer_scaler_s &scaler,
uint8_t &control_group,
uint8_t &control_index);
+
+ /* do not allow to copy due to ptr data members */
+ SimpleMixer(const SimpleMixer&);
+ SimpleMixer operator=(const SimpleMixer&);
};
/**
@@ -522,6 +534,9 @@ private:
unsigned _rotor_count;
const Rotor *_rotors;
+ /* do not allow to copy due to ptr data members */
+ MultirotorMixer(const MultirotorMixer&);
+ MultirotorMixer operator=(const MultirotorMixer&);
};
#endif