X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fglobal-ctor.cc;h=cfc75fb135e72b7b709b697d9ac791910ed73ab5;hb=53ed6257ae65d5a12b45da9fce930267ed12db48;hp=6d7ce34a0beef1253f6d14f9357bd29dd83ab84b;hpb=545092a25d8ca41dc90b87482474b3719f7130a9;p=lilypond.git diff --git a/lily/global-ctor.cc b/lily/global-ctor.cc index 6d7ce34a0b..cfc75fb135 100644 --- a/lily/global-ctor.cc +++ b/lily/global-ctor.cc @@ -3,26 +3,26 @@ source file of the GNU LilyPond music typesetter - (c) 1999--2005 Han-Wen Nienhuys + (c) 1999--2008 Han-Wen Nienhuys */ #include "global-ctor.hh" -#include "array.hh" +#include "std-vector.hh" -static Array *ctor_global_statics_; +static vector *ctor_global_statics_; void add_constructor (Global_ctor c) { if (!ctor_global_statics_) - ctor_global_statics_ = new Array; - ctor_global_statics_->push (c); + ctor_global_statics_ = new vector; + ctor_global_statics_->push_back (c); } void call_constructors () { - for (int i = 0; i < ctor_global_statics_->size (); i++) - (ctor_global_statics_->elem (i)) (); + for (vsize i = 0; i < ctor_global_statics_->size (); i++) + (ctor_global_statics_->at (i)) (); }