From: Dana Jansens Date: Wed, 4 Dec 2002 07:58:51 +0000 (+0000) Subject: simple change in initialization X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=0a15728be441cf687ef93fd2ab8c38266adacd94;p=chaz%2Fopenbox simple change in initialization --- diff --git a/src/actions.cc b/src/actions.cc index 6750cc58..d8162a50 100644 --- a/src/actions.cc +++ b/src/actions.cc @@ -15,8 +15,8 @@ const unsigned int OBActions::DOUBLECLICKDELAY = 300; OBActions::OBActions() : _button(0), _enter_win(0) { - _presses[0] = new MousePressAction(); - _presses[1] = new MousePressAction(); + for (int i = 0; i < 2; ++i) + _presses[i] = new MousePressAction(); // XXX: load a configuration out of somewhere