diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-23 08:03:26 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-23 08:12:46 +0100 |
commit | 16c85c6d1870f6f410cf75fc0fe3cb386eb9f6ee (patch) | |
tree | 88b175f99a908194eca02079a8e55279e4904a4b /src/platforms/px4_nodehandle.h | |
parent | 59f05a7195ae4a2d57e276c31e12bcf6af477408 (diff) | |
download | px4-firmware-16c85c6d1870f6f410cf75fc0fe3cb386eb9f6ee.tar.gz px4-firmware-16c85c6d1870f6f410cf75fc0fe3cb386eb9f6ee.tar.bz2 px4-firmware-16c85c6d1870f6f410cf75fc0fe3cb386eb9f6ee.zip |
move uorb::publisherbase into constructor of publisher
Diffstat (limited to 'src/platforms/px4_nodehandle.h')
-rw-r--r-- | src/platforms/px4_nodehandle.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/platforms/px4_nodehandle.h b/src/platforms/px4_nodehandle.h index c85b8118b..fd1647051 100644 --- a/src/platforms/px4_nodehandle.h +++ b/src/platforms/px4_nodehandle.h @@ -243,13 +243,8 @@ public: template<typename T> Publisher<T> *advertise() { - //XXX - // uORB::PublicationBase * uorb_pub = new uORB::PublicationBase((new T())->handle()); - uORB::PublicationBase * uorb_pub = new uORB::PublicationBase(T::handle()); - PublisherUORB<T> *pub = new PublisherUORB<T>(uorb_pub); - + PublisherUORB<T> *pub = new PublisherUORB<T>(); _pubs.add(pub); - return (Publisher<T>*)pub; } |