Perhaps it's better to compare the contents of the strings instead of comparing the pointers.
This commit is contained in:
parent
0666590909
commit
e4390aac42
1 changed files with 9 additions and 2 deletions
|
@ -193,10 +193,17 @@ protected:
|
|||
virtual void setupFont (SGPropertyNode *);
|
||||
|
||||
private:
|
||||
struct ltstr
|
||||
{
|
||||
bool operator()(const char* s1, const char* s2) const {
|
||||
return strcmp(s1, s2) < 0;
|
||||
}
|
||||
};
|
||||
|
||||
fntTexFont _tex_font;
|
||||
puFont _font;
|
||||
map<const char*,FGColor*> _colors;
|
||||
typedef map<const char*,FGColor*>::const_iterator _itt_t;
|
||||
map<const char*,FGColor*, ltstr> _colors;
|
||||
typedef map<const char*,FGColor*, ltstr>::const_iterator _itt_t;
|
||||
|
||||
// Free all allocated memory.
|
||||
void clear ();
|
||||
|
|
Loading…
Reference in a new issue