From: frohlich Date: Fri, 27 Feb 2009 19:30:28 +0000 (+0000) Subject: Make material get helper function static. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=90c58087e8ebfbeee6c2688bc0b2f34479ca18d6;p=simgear.git Make material get helper function static. Modified Files: simgear/scene/material/matlib.cxx simgear/scene/material/matlib.hxx --- diff --git a/simgear/scene/material/matlib.cxx b/simgear/scene/material/matlib.cxx index 6aa82d4e..484e0783 100644 --- a/simgear/scene/material/matlib.cxx +++ b/simgear/scene/material/matlib.cxx @@ -175,7 +175,7 @@ SGMaterialLib::~SGMaterialLib ( void ) { } const SGMaterial* -SGMaterialLib::findMaterial(const osg::StateSet* stateSet) const +SGMaterialLib::findMaterial(const osg::StateSet* stateSet) { if (!stateSet) return 0; diff --git a/simgear/scene/material/matlib.hxx b/simgear/scene/material/matlib.hxx index 94f47881..f1970985 100644 --- a/simgear/scene/material/matlib.hxx +++ b/simgear/scene/material/matlib.hxx @@ -83,7 +83,7 @@ public: material_map_iterator end() { return matlib.end(); } const_material_map_iterator end() const { return matlib.end(); } - const SGMaterial* findMaterial(const osg::StateSet* stateSet) const; + static const SGMaterial* findMaterial(const osg::StateSet* stateSet); // Destructor ~SGMaterialLib ( void );