]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/userinterface.h
typedef tweaks
[libs/gltk.git] / source / userinterface.h
index c0750c003b5a15cc4e4bda9bf42d5f46ab91c329..9ce08c38e08f6e64dd568b282b38c40b81837dc3 100644 (file)
@@ -33,8 +33,10 @@ public:
                void root();
        };
 
+       typedef std::map<std::string, Widget *> WidgetMap;
+
 private:
-       std::map<std::string, Widget *> widgets;
+       WidgetMap widgets;
        Root root;
        Logic logic;
 
@@ -46,7 +48,7 @@ public:
        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);