From b3904ef729079bf9f89d9982a3257986a835ff5b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 9 Jul 2002 10:33:15 +0000 Subject: [PATCH] Warnings fixes for IRIX - there was a missing "const" in the sameKindAs(.) method. --- include/osgParticle/Emitter | 2 +- include/osgParticle/ParticleProcessor | 2 +- include/osgParticle/Program | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/osgParticle/Emitter b/include/osgParticle/Emitter index 935f14cea..fbce814c0 100644 --- a/include/osgParticle/Emitter +++ b/include/osgParticle/Emitter @@ -30,7 +30,7 @@ namespace osgParticle virtual const char *libraryName() const { return "osgParticle"; } virtual const char *className() const { return "Emitter"; } - virtual bool isSameKindAs(const osg::Object *obj) { return dynamic_cast(obj) != 0; } + virtual bool isSameKindAs(const osg::Object *obj) const { return dynamic_cast(obj) != 0; } virtual void accept(osg::NodeVisitor& nv) { if (nv.validNodeMask(*this)) { nv.pushOntoNodePath(this); nv.apply(*this); nv.popFromNodePath(); } } /// Get the particle template. diff --git a/include/osgParticle/ParticleProcessor b/include/osgParticle/ParticleProcessor index 8a193100d..e00533ec7 100644 --- a/include/osgParticle/ParticleProcessor +++ b/include/osgParticle/ParticleProcessor @@ -38,7 +38,7 @@ namespace osgParticle ParticleProcessor(const ParticleProcessor ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY); virtual const char *className() const { return "ParticleProcessor"; } - virtual bool isSameKindAs(const osg::Object *obj) { return dynamic_cast(obj) != 0; } + virtual bool isSameKindAs(const osg::Object *obj) const { return dynamic_cast(obj) != 0; } virtual void accept(osg::NodeVisitor& nv) { if (nv.validNodeMask(*this)) { nv.pushOntoNodePath(this); nv.apply(*this); nv.popFromNodePath(); } } /// Get the reference frame. diff --git a/include/osgParticle/Program b/include/osgParticle/Program index 8eeabc449..6a3e1170a 100644 --- a/include/osgParticle/Program +++ b/include/osgParticle/Program @@ -30,7 +30,7 @@ namespace osgParticle virtual const char *libraryName() const { return "osgParticle"; } virtual const char *className() const { return "Program"; } - virtual bool isSameKindAs(const osg::Object *obj) { return dynamic_cast(obj) != 0; } + virtual bool isSameKindAs(const osg::Object *obj) const { return dynamic_cast(obj) != 0; } virtual void accept(osg::NodeVisitor& nv) { if (nv.validNodeMask(*this)) { nv.pushOntoNodePath(this); nv.apply(*this); nv.popFromNodePath(); } } protected: