]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/beam-performer.cc
Issue 4865/2: Rewrite of new translator initializations
[lilypond.git] / lily / beam-performer.cc
index d14879bf93b1c01366c8d9aec7b8194918680a76..0d658dd6b8ea75554370f934a3eff091a121fd37 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1996--2011 Jan Nieuwenhuizen <janneke@gnu.org>
+  Copyright (C) 1996--2015 Jan Nieuwenhuizen <janneke@gnu.org>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -80,7 +80,6 @@ Beam_performer::start_translation_timestep ()
   now_stop_ev_ = 0;
 }
 
-IMPLEMENT_TRANSLATOR_LISTENER (Beam_performer, beam);
 void
 Beam_performer::listen_beam (Stream_event *ev)
 {
@@ -92,6 +91,12 @@ Beam_performer::listen_beam (Stream_event *ev)
     now_stop_ev_ = ev;
 }
 
+void
+Beam_performer::boot ()
+{
+  ADD_LISTENER (Beam_performer, beam);
+}
+
 ADD_TRANSLATOR (Beam_performer,
                 /* doc */
                 "",
@@ -104,5 +109,5 @@ ADD_TRANSLATOR (Beam_performer,
 
                 /* write */
                 ""
-                );
+               );