X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fdots-engraver.cc;h=b58bd46912038a0828e4f44402e7339d4ae99a2b;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=efe927e0ecdf357b33d6b6dfed95936e5852c4aa;hpb=1c846b2c2348b4e0ca4a3c2e8fb267047ba2d203;p=lilypond.git diff --git a/lily/dots-engraver.cc b/lily/dots-engraver.cc index efe927e0ec..b58bd46912 100644 --- a/lily/dots-engraver.cc +++ b/lily/dots-engraver.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2006--2011 Han-Wen Nienhuys + Copyright (C) 2006--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,8 +25,7 @@ #include "translator.icc" - -class Dots_engraver : public Engraver +class Dots_engraver : public Engraver { DECLARE_ACKNOWLEDGER (rhythmic_head); TRANSLATOR_DECLARATIONS (Dots_engraver); @@ -44,10 +43,10 @@ Dots_engraver::acknowledge_rhythmic_head (Grob_info gi) return; Grob *note = gi.grob (); - if (unsmob_grob (note->get_object ("dot"))) + if (Grob::is_smob (note->get_object ("dot"))) return; - - Duration *dur = unsmob_duration (cause->get_property ("duration")); + + Duration *dur = Duration::unsmob (cause->get_property ("duration")); if (dur && dur->dot_count ()) { Item *d = make_item ("Dots", note->self_scm ()); @@ -57,19 +56,18 @@ Dots_engraver::acknowledge_rhythmic_head (Grob_info gi) } } - ADD_ACKNOWLEDGER (Dots_engraver, rhythmic_head); ADD_TRANSLATOR (Dots_engraver, - "Create @ref{Dots} objects for" - " @ref{rhythmic-head-interface}s.", - - /* create */ - "Dots ", - - /* read */ - "", - - /* write */ - "" - ); + "Create @ref{Dots} objects for" + " @ref{rhythmic-head-interface}s.", + + /* create */ + "Dots ", + + /* read */ + "", + + /* write */ + "" + );