]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/logic.cpp
Style update: add spaces around assignments
[libs/gltk.git] / source / logic.cpp
index 16444892a591b752aa7eff5e95b0f1bf67bfc07e..85ec710def369c7b6764e0cb69f0e628f03e8af6 100644 (file)
@@ -21,16 +21,16 @@ Logic::Loader::Loader(Logic &l, const map<string, Widget *> &w):
 
 void Logic::Loader::bind(const string &wdg, const string &data)
 {
-       map<string, Widget *>::const_iterator i=widgets.find(wdg);
+       map<string, Widget *>::const_iterator i = widgets.find(wdg);
        if(i==widgets.end())
                throw KeyError("Unknown widget", wdg);
 
-       string::size_type colon=data.find(':');
+       string::size_type colon = data.find(':');
        WidgetBinding act;
-       act.wdg=i->second;
-       act.type=data.substr(0, colon);
+       act.wdg = i->second;
+       act.type = data.substr(0, colon);
        if(colon!=string::npos)
-               act.data=data.substr(colon+1);
+               act.data = data.substr(colon+1);
        logic.bindings.push_back(act);
 }