X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=blobdiff_plain;f=lily%2Ftie-performer.cc;h=fca448b6227ee89149b7cbc6dde43156fc9065fd;hb=07a5ed85c189a97d04c550679826dfc5eca2eb18;hp=685806ff95db53709fc5c423015b002b5a24e5d6;hpb=f7abba6f6ea0cbd6e41971f30f2c930e7ce0df42;p=lilypond.git diff --git a/lily/tie-performer.cc b/lily/tie-performer.cc index 685806ff95..fca448b622 100644 --- a/lily/tie-performer.cc +++ b/lily/tie-performer.cc @@ -39,10 +39,8 @@ inline int compare (CNote_melodic_tuple const &a, CNote_melodic_tuple const &b) class Tie_performer : public Performer { public: - VIRTUAL_COPY_CONS (Translator); - + VIRTUAL_COPY_CONS(Translator); Tie_performer (); - private: bool done_; PQueue past_notes_pq_; @@ -52,7 +50,7 @@ private: Link_array tie_p_arr_; protected: - virtual void do_creation_processing (); + virtual void initialize (); virtual void start_translation_timestep (); virtual void stop_translation_timestep (); virtual void acknowledge_grob (Audio_element_info); @@ -60,23 +58,31 @@ protected: virtual void create_grobs (); }; + +Tie_performer::Tie_performer () +{ + req_l_ = 0; + done_ = false; +} + ADD_THIS_TRANSLATOR (Tie_performer); +#if 0 Tie_performer::Tie_performer () { // URG // if we don't do this, lily dumps core - // which means that ``do_creation_processing'' and + // which means that ``initialize'' and // ``start_translation_timestep'' did not happen?! - do_creation_processing (); + initialize (); } +#endif void -Tie_performer::do_creation_processing () +Tie_performer::initialize () { req_l_ = 0; - done_ = false; }