diff --git a/include/osgGA/GUIEventHandler b/include/osgGA/GUIEventHandler index ef4bcdaa0..300942aab 100644 --- a/include/osgGA/GUIEventHandler +++ b/include/osgGA/GUIEventHandler @@ -86,7 +86,7 @@ public: typedef std::vector< osg::ref_ptr > ChildList; - virtual const char* className() { return "CompositeGUIEventHandler"; } + virtual const char* className() const { return "CompositeGUIEventHandler"; } virtual const CompositeGUIEventHandler* getComposite() const { return this; } diff --git a/include/osgGA/KeySwitchMatrixManipulator b/include/osgGA/KeySwitchMatrixManipulator index 8fa55e0c6..50687072b 100644 --- a/include/osgGA/KeySwitchMatrixManipulator +++ b/include/osgGA/KeySwitchMatrixManipulator @@ -34,7 +34,7 @@ class OSGGA_EXPORT KeySwitchMatrixManipulator : public MatrixManipulator { public: - virtual const char* className() { return "KeySwitchMatrixManipulator"; } + virtual const char* className() const { return "KeySwitchMatrixManipulator"; } /** Add a camera manipulator with an associated name, and a key to diff --git a/include/osgGA/StateSetManipulator b/include/osgGA/StateSetManipulator index 33781ded3..3c99a3c44 100644 --- a/include/osgGA/StateSetManipulator +++ b/include/osgGA/StateSetManipulator @@ -34,7 +34,7 @@ public: StateSetManipulator(); virtual ~StateSetManipulator(); - virtual const char* className() { return "StateSetManipulator"; } + virtual const char* className() const { return "StateSetManipulator"; } /** attach a geostate to the manipulator to be used for specifying view.*/ virtual void setStateSet(osg::StateSet*);