Make it compile with gcc-3.3.6
This commit is contained in:
@@ -317,6 +317,15 @@ void SGMaterial::assignTexture( ssgSimpleState *state, string &fname,
|
||||
}
|
||||
}
|
||||
|
||||
SGMaterialGlyph* SGMaterial::get_glyph (const string& name) const
|
||||
{
|
||||
map<string, SGSharedPtr<SGMaterialGlyph> >::const_iterator it;
|
||||
it = glyphs.find(name);
|
||||
if (it == glyphs.end())
|
||||
return 0;
|
||||
|
||||
return it->second;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -207,10 +207,7 @@ public:
|
||||
/**
|
||||
* Return pointer to glyph class, or 0 if it doesn't exist.
|
||||
*/
|
||||
SGMaterialGlyph * get_glyph (const string& name) const {
|
||||
map<string, SGSharedPtr<SGMaterialGlyph> >::const_iterator it = glyphs.find(name);
|
||||
return it != glyphs.end() ? it->second : 0;
|
||||
}
|
||||
SGMaterialGlyph * get_glyph (const string& name) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user