delete _menubar;
_menubar = 0;
_dialog_props.clear();
+ _itt_t it;
+ for (it = _colors.begin(); it != _colors.end(); ++it)
+ delete it->second;
_colors.clear();
}
void
NewGUI::setStyle (void)
{
+ _itt_t it;
+ for (it = _colors.begin(); it != _colors.end(); ++it)
+ delete it->second;
_colors.clear();
// set up the traditional colors as default
virtual FGDialog * getActiveDialog ();
virtual FGColor *getColor (const char * name) const {
- _itt_t it = _colors.find(name);
+ _citt_t it = _colors.find(name);
return (it != _colors.end()) ? it->second : NULL;
}
virtual FGColor *getColor (const string &name) const {
- _itt_t it = _colors.find(name.c_str());
+ _citt_t it = _colors.find(name.c_str());
return (it != _colors.end()) ? it->second : NULL;
}
fntTexFont _tex_font;
puFont _font;
map<const char*,FGColor*, ltstr> _colors;
- typedef map<const char*,FGColor*, ltstr>::const_iterator _itt_t;
+ typedef map<const char*,FGColor*, ltstr>::iterator _itt_t;
+ typedef map<const char*,FGColor*, ltstr>::const_iterator _citt_t;
// Free all allocated memory.
void clear ();