void root();
};
+ typedef std::map<std::string, Widget *> WidgetMap;
+
private:
- std::map<std::string, Widget *> widgets;
+ WidgetMap widgets;
Root root;
Logic logic;
template<typename W>
W &get_widget(const std::string &n) const
{
- std::map<std::string, Widget *>::const_iterator i = widgets.find(n);
+ WidgetMap::const_iterator i = widgets.find(n);
if(i==widgets.end())
throw KeyError("Unknown widget", n);