Permalink
Browse files

Added virtual destructors

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14351 16af8721-9629-0410-8352-f15c8da7e697
  • Loading branch information...
1 parent 9897888 commit 14e10cf605eea97c48edabdcf602a1fe5ac7862e @osg-training-guest osg-training-guest committed Jul 3, 2014
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/osgPlugins/osc/OscSendingDevice.cpp
  2. +2 −0 src/osgPresentation/deprecated/PropertyManager.cpp
@@ -373,6 +373,8 @@ class OscSendingDeviceGetValueVisitor : public osg::ValueObject::GetValueVisitor
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;
@@ -179,6 +179,8 @@ class MySetValueVisitor : public osg::ValueObject::SetValueVisitor
virtual void apply(osg::Matrixf& value) { combineMatrixUserValue(value); }
virtual void apply(osg::Matrixd& value) { combineMatrixUserValue(value); }
+ virtual ~MySetValueVisitor() {}
+
double _r1, _r2;
osg::ValueObject* _object2;
};

0 comments on commit 14e10cf

Please sign in to comment.