]> Dogcows Code - chaz/openbox/commitdiff
simple change in initialization
authorDana Jansens <danakj@orodu.net>
Wed, 4 Dec 2002 07:58:51 +0000 (07:58 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 4 Dec 2002 07:58:51 +0000 (07:58 +0000)
src/actions.cc

index 6750cc58e7dd02469753eafdff70adf2777c12be..d8162a50572d1dfd4c693c0c2ad00cfcc217677c 100644 (file)
@@ -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
 
This page took 0.021596 seconds and 4 git commands to generate.