From 1b269a77111fa293978a5369c29d05ff1fbf9cda Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 21 Nov 2013 14:21:55 +0000 Subject: [PATCH] From Stephan Huber, "CLang / LLVM on OS X seems to have a problem compiling the osgGA-serializer. (It was reported before on the list, but the error is hard to track as it shows up only sometimes) I fixed the compile-error with a dedicated destructor of osgGA::GUIEventHandler" --- include/osgGA/GUIEventHandler | 4 ++++ src/osgGA/GUIEventHandler.cpp | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/include/osgGA/GUIEventHandler b/include/osgGA/GUIEventHandler index 3d66db9e3..e9d6dc636 100644 --- a/include/osgGA/GUIEventHandler +++ b/include/osgGA/GUIEventHandler @@ -122,6 +122,10 @@ public: protected: unsigned int _ignoreHandledEventsMask; #endif + +protected: + virtual ~GUIEventHandler(); + }; } diff --git a/src/osgGA/GUIEventHandler.cpp b/src/osgGA/GUIEventHandler.cpp index 04a845aa1..b518100ca 100644 --- a/src/osgGA/GUIEventHandler.cpp +++ b/src/osgGA/GUIEventHandler.cpp @@ -16,6 +16,13 @@ using namespace osgGA; + +GUIEventHandler::~GUIEventHandler() +{ + +} + + // adapt EventHandler usage to old style GUIEventHandler usage bool GUIEventHandler::handle(osgGA::Event* event, osg::Object* object, osg::NodeVisitor* nv) {