From d981ca416efca48687e73d51c71774989678291e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 3 Jul 2014 13:06:23 +0000 Subject: [PATCH] Added virtual destructors git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14351 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgPlugins/osc/OscSendingDevice.cpp | 2 ++ src/osgPresentation/deprecated/PropertyManager.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/osgPlugins/osc/OscSendingDevice.cpp b/src/osgPlugins/osc/OscSendingDevice.cpp index 1964b00ab..ac403c572 100644 --- a/src/osgPlugins/osc/OscSendingDevice.cpp +++ b/src/osgPlugins/osc/OscSendingDevice.cpp @@ -373,6 +373,8 @@ public: virtual void apply(const osg::Matrixf& value) { for(unsigned int i=0; i<16; ++i) _stream << (value.ptr())[i]; } virtual void apply(const osg::Matrixd& value) { for(unsigned int i=0; i<16; ++i) _stream << (value.ptr())[i]; } + virtual ~OscSendingDeviceGetValueVisitor() {} + private: osc::OutboundPacketStream& _stream; diff --git a/src/osgPresentation/deprecated/PropertyManager.cpp b/src/osgPresentation/deprecated/PropertyManager.cpp index 6bc87fc0e..587fcddc4 100644 --- a/src/osgPresentation/deprecated/PropertyManager.cpp +++ b/src/osgPresentation/deprecated/PropertyManager.cpp @@ -179,6 +179,8 @@ public: virtual void apply(osg::Matrixf& value) { combineMatrixUserValue(value); } virtual void apply(osg::Matrixd& value) { combineMatrixUserValue(value); } + virtual ~MySetValueVisitor() {} + double _r1, _r2; osg::ValueObject* _object2; };