From a72845cfc44ec66626dde71ca40440ffc5d95f49 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 7 Mar 2005 14:38:43 +0000 Subject: [PATCH] Sebastien Grignard, fixed getMember methods to properly use const type. --- include/osg/ClipPlane | 2 +- include/osg/Light | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osg/ClipPlane b/include/osg/ClipPlane index c7d96524d..4db9f54e6 100644 --- a/include/osg/ClipPlane +++ b/include/osg/ClipPlane @@ -61,7 +61,7 @@ class SG_EXPORT ClipPlane : public StateAttribute return 0; // Passed all the above comparison macros, so must be equal. } - virtual unsigned int getMember() { return _clipPlaneNum; } + virtual unsigned int getMember() const { return _clipPlaneNum; } virtual bool getModeUsage(ModeUsage& usage) const { diff --git a/include/osg/Light b/include/osg/Light index cb85db912..e64fe6cd2 100644 --- a/include/osg/Light +++ b/include/osg/Light @@ -67,7 +67,7 @@ class SG_EXPORT Light : public StateAttribute return 0; // passed all the above comparison macro's, must be equal. } - virtual unsigned int getMember() { return _lightnum; } + virtual unsigned int getMember() const { return _lightnum; } virtual bool getModeUsage(ModeUsage& usage) const {