From 11053aaa5c0a57427d46abf89ce56a2b7aaa91e5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 29 Mar 2003 22:07:03 +0000 Subject: [PATCH] Change the className() functions from non const to const to be consistent with the osg::Object definition. --- include/osgGA/CameraManipulator | 2 +- include/osgGA/DriveManipulator | 2 +- include/osgGA/FlightManipulator | 2 +- include/osgGA/TrackballManipulator | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/osgGA/CameraManipulator b/include/osgGA/CameraManipulator index 252f55214..5c96be009 100644 --- a/include/osgGA/CameraManipulator +++ b/include/osgGA/CameraManipulator @@ -36,7 +36,7 @@ class OSGGA_EXPORT CameraManipulator : public GUIEventHandler public: - virtual const char* className() { return "CameraManipulator"; } + virtual const char* className() const { return "CameraManipulator"; } /** Attach a camera to the manipulator to be used for specifying view.*/ virtual void setCamera(osg::Camera*); diff --git a/include/osgGA/DriveManipulator b/include/osgGA/DriveManipulator index 74f54bc3e..3daf5cdff 100644 --- a/include/osgGA/DriveManipulator +++ b/include/osgGA/DriveManipulator @@ -31,7 +31,7 @@ class OSGGA_EXPORT DriveManipulator : public CameraManipulator DriveManipulator(); - virtual const char* className() { return "Drive"; } + virtual const char* className() const { return "Drive"; } virtual void setNode(osg::Node*); diff --git a/include/osgGA/FlightManipulator b/include/osgGA/FlightManipulator index 8f9b3ab4e..3635c21d1 100644 --- a/include/osgGA/FlightManipulator +++ b/include/osgGA/FlightManipulator @@ -31,7 +31,7 @@ class OSGGA_EXPORT FlightManipulator : public CameraManipulator FlightManipulator(); - virtual const char* className() { return "Flight"; } + virtual const char* className() const { return "Flight"; } virtual void setNode(osg::Node*); diff --git a/include/osgGA/TrackballManipulator b/include/osgGA/TrackballManipulator index 4061663c9..9436b02be 100644 --- a/include/osgGA/TrackballManipulator +++ b/include/osgGA/TrackballManipulator @@ -24,7 +24,7 @@ class OSGGA_EXPORT TrackballManipulator : public CameraManipulator TrackballManipulator(); - virtual const char* className() { return "Trackball"; } + virtual const char* className() const { return "Trackball"; } /** Attach a node to the manipulator. Automatically detaches previously attached node.