Symtables::Symtables (Symtables const &s)
: Dictionary<Symtable*> (s)
{
- font_ = s.font_;
- font_path_ = s.font_path_;
+ font_name_ = s.font_name_;
+
for (Dictionary_iter< Symtable*> i (s); i.ok(); i++)
{
add (i.key(), new Symtable (*i.val ()));
Symtables::~Symtables()
{
- for (Dictionary_iter< Symtable*> i (*this); i.ok(); i++)
+ for (Dictionary_iter<Symtable*> i (*this); i.ok(); i++)
{
delete i.val();
}
{
error (_f ("Symtable `%s\' unknown", s));
/*
- We can 't return, because we'll dump core anyway.
+ We can 't return, because we would dump core anyway.
*/
return 0;
}
else
- return Dictionary<Symtable*>::operator[](s);
+ return elem(s);
}
void
Symtables::print() const