-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
+#include <msp/core/maputils.h>
#include "connector.h"
#include "logic.h"
for(list<Logic::WidgetBinding>::const_iterator i=logic_binds.begin(); i!=logic_binds.end(); ++i)
{
- map<string, ConnAction *>::const_iterator j = actions.find(i->type);
- if(j!=actions.end())
- j->second->connect(*this, *i->wdg, i->data);
- else
- throw KeyError("Unknown binding type", i->type);
+ ConnAction *action = get_item(actions, i->type);
+ action->connect(*this, *i->wdg, i->data);
}
}