From 93a8b916cc33e7ad2f5a820438f9b3f6842e7bdb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 8 Jun 2016 11:30:35 +0100 Subject: [PATCH] Fixed -Wextra warnings --- examples/osggpx/osggpx.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/osggpx/osggpx.cpp b/examples/osggpx/osggpx.cpp index c95bacc9a..d6f36d6e1 100644 --- a/examples/osggpx/osggpx.cpp +++ b/examples/osggpx/osggpx.cpp @@ -42,7 +42,8 @@ class TrackSegment : public osg::Object public: TrackSegment() {} - TrackSegment(const TrackSegment& ts, const osg::CopyOp=osg::CopyOp::SHALLOW_COPY) {} + TrackSegment(const TrackSegment& ts, const osg::CopyOp copyop=osg::CopyOp::SHALLOW_COPY): + osg::Object(ts, copyop) {} META_Object(osg, TrackSegment) @@ -78,7 +79,8 @@ class Track : public osg::Object public: Track() {} - Track(const Track& track, const osg::CopyOp=osg::CopyOp::SHALLOW_COPY) {} + Track(const Track& track, const osg::CopyOp copyop=osg::CopyOp::SHALLOW_COPY): + osg::Object(track, copyop) {} META_Object(osg, Track)