From 345298badd829c98e19811675f3b3b8afd929843 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 5 Feb 2004 12:11:06 +0000 Subject: [PATCH] Fixed the className() defintations to be const --- include/osgGA/GUIEventHandler | 2 +- include/osgGA/KeySwitchMatrixManipulator | 2 +- include/osgGA/StateSetManipulator | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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*);