Make it compile with gcc-3.3.6

This commit is contained in:
frohlich
2006-06-17 16:04:05 +00:00
parent b3262fcb80
commit f79906bf16
2 changed files with 10 additions and 4 deletions

View File

@@ -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;
}
////////////////////////////////////////////////////////////////////////

View File

@@ -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: