]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/userinterface.h
Style update: add spaces around assignments
[libs/gltk.git] / source / userinterface.h
index c821320b672e3a5445e935522eec1453faa460f1..c0750c003b5a15cc4e4bda9bf42d5f46ab91c329 100644 (file)
@@ -46,11 +46,11 @@ public:
        template<typename W>
        W &get_widget(const std::string &n) const
        {
-               std::map<std::string, Widget *>::const_iterator i=widgets.find(n);
+               std::map<std::string, Widget *>::const_iterator i = widgets.find(n);
                if(i==widgets.end())
                        throw KeyError("Unknown widget", n);
 
-               W *w=dynamic_cast<W *>(i->second);
+               W *w = dynamic_cast<W *>(i->second);
                if(!w)
                        throw Exception("Widget type mismatch");
 
@@ -60,7 +60,7 @@ public:
        template<typename W>
        void get_widget(const std::string &n, W *&w) const
        {
-               w=&get_widget<W>(n);
+               w = &get_widget<W>(n);
        }
 };