aboutsummaryrefslogtreecommitdiff
path: root/src/modules/uORB/Publication.hpp
diff options
context:
space:
mode:
authorJames Goppert <james.goppert@gmail.com>2014-03-16 17:01:03 -0400
committerJames Goppert <james.goppert@gmail.com>2014-03-20 12:12:42 -0400
commitafb2c37bfc20150718114c4ef56e40a7c4d4722f (patch)
tree593fdec377ee6f0a6364a2a62783e868e59ba821 /src/modules/uORB/Publication.hpp
parentda9dab27998fa9e8b7a66d53a00aa3cae93573ec (diff)
downloadpx4-firmware-afb2c37bfc20150718114c4ef56e40a7c4d4722f.tar.gz
px4-firmware-afb2c37bfc20150718114c4ef56e40a7c4d4722f.tar.bz2
px4-firmware-afb2c37bfc20150718114c4ef56e40a7c4d4722f.zip
Fixed uORB Pub/Sub templates for GCC 4.7
Diffstat (limited to 'src/modules/uORB/Publication.hpp')
-rw-r--r--src/modules/uORB/Publication.hpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/modules/uORB/Publication.hpp b/src/modules/uORB/Publication.hpp
index 21840ed70..8650b3df8 100644
--- a/src/modules/uORB/Publication.hpp
+++ b/src/modules/uORB/Publication.hpp
@@ -95,13 +95,9 @@ public:
* @param meta The uORB metadata (usually from the ORB_ID() macro)
* for the topic.
*/
- Publication(
- List<PublicationBase *> * list,
- const struct orb_metadata *meta) :
- T(), // initialize data structure to zero
- PublicationBase(list, meta) {
- }
- virtual ~Publication() {}
+ Publication(List<PublicationBase *> * list,
+ const struct orb_metadata *meta);
+ virtual ~Publication();
/*
* XXX
* This function gets the T struct, assuming
@@ -109,7 +105,7 @@ public:
* should use dynamic cast, but doesn't
* seem to be available
*/
- void *getDataVoidPtr() { return (void *)(T *)(this); }
+ void *getDataVoidPtr();
};
} // namespace uORB