X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fswallow-engraver.cc;h=37a2148dbf140b55944820e2a31714ce02b4b679;hb=665aa6046a11676fab68826fd61a99e53b704e01;hp=bda9d59b145b5ac14254569dc2dedda85630e77d;hpb=d9b43b93f2c885409bafdb157138158f65cc49aa;p=lilypond.git diff --git a/lily/swallow-engraver.cc b/lily/swallow-engraver.cc index bda9d59b14..37a2148dbf 100644 --- a/lily/swallow-engraver.cc +++ b/lily/swallow-engraver.cc @@ -1,29 +1,45 @@ /* - swallow-reg.cc -- implement Swallow_engraver + swallow-engraver.cc -- implement Swallow_engraver source file of the GNU LilyPond music typesetter - (c) 1997--2002 Han-Wen Nienhuys + (c) 1997--2007 Han-Wen Nienhuys */ #include "engraver.hh" -/** - This engraver swallows everything given to it silently. The purpose of - this is to prevent spurious "request junked" warnings. - */ class Swallow_engraver : public Engraver { public: - TRANSLATOR_DECLARATIONS(Swallow_engraver); + TRANSLATOR_DECLARATIONS (Swallow_engraver); protected: - bool try_music (Music*) ; + bool try_music (Music *); }; - - bool -Swallow_engraver::try_music (Music*) +Swallow_engraver::try_music (Music *) { return true; } + +Swallow_engraver::Swallow_engraver () +{ +} + +#include "translator.icc" + +ADD_TRANSLATOR (Swallow_engraver, + /* doc */ + "This engraver swallows everything given to it silently." + " The purpose of this is to prevent spurious @q{event junked}" + " warnings.", + + /* create */ + "", + + /* read */ + "", + + /* write */ + "" + );