1
0
Fork 0

Perhaps it's better to compare the contents of the strings instead of comparing the pointers.

This commit is contained in:
ehofman 2005-07-18 11:55:39 +00:00
parent 0666590909
commit e4390aac42

View file

@ -193,10 +193,17 @@ protected:
virtual void setupFont (SGPropertyNode *); virtual void setupFont (SGPropertyNode *);
private: private:
struct ltstr
{
bool operator()(const char* s1, const char* s2) const {
return strcmp(s1, s2) < 0;
}
};
fntTexFont _tex_font; fntTexFont _tex_font;
puFont _font; puFont _font;
map<const char*,FGColor*> _colors; map<const char*,FGColor*, ltstr> _colors;
typedef map<const char*,FGColor*>::const_iterator _itt_t; typedef map<const char*,FGColor*, ltstr>::const_iterator _itt_t;
// Free all allocated memory. // Free all allocated memory.
void clear (); void clear ();