diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-16 09:24:31 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-16 09:24:31 +0200 |
commit | 3ca15ab157b395b00ff225e419ae662551bc6b81 (patch) | |
tree | d72cb2e3a1502b4c1377ad6b3fa34f779c53b132 /src/modules/controllib/block | |
parent | 02f56aae8cf34334580ade6e73bf2d58b12689f5 (diff) | |
download | px4-firmware-3ca15ab157b395b00ff225e419ae662551bc6b81.tar.gz px4-firmware-3ca15ab157b395b00ff225e419ae662551bc6b81.tar.bz2 px4-firmware-3ca15ab157b395b00ff225e419ae662551bc6b81.zip |
Controllib block: Make copy constructor private
Diffstat (limited to 'src/modules/controllib/block')
-rw-r--r-- | src/modules/controllib/block/Block.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/controllib/block/Block.hpp b/src/modules/controllib/block/Block.hpp index 736698e21..9bd80b15b 100644 --- a/src/modules/controllib/block/Block.hpp +++ b/src/modules/controllib/block/Block.hpp @@ -93,6 +93,11 @@ protected: List<uORB::SubscriptionBase *> _subscriptions; List<uORB::PublicationBase *> _publications; List<BlockParamBase *> _params; + +private: + /* this class has pointer data members and should not be copied (private constructor) */ + Block(const control::Block&); + Block operator=(const control::Block&); }; class __EXPORT SuperBlock : |