diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-16 09:05:50 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-16 09:05:50 +0200 |
commit | 654aaa0ca852b95e4e2bec5cf9b77ca3242d1d63 (patch) | |
tree | 1891a10a33beddf2c0ee76e1f9f5c24afbf68a95 /src/modules/systemlib/mixer/mixer.h | |
parent | c5b13b7dbcb36f75d88fa24b879c3f202d01da38 (diff) | |
download | px4-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/mixer/mixer.h')
-rw-r--r-- | src/modules/systemlib/mixer/mixer.h | 15 |
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 |