X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fspan-bar-stub-engraver.cc;h=3517c3f5fd38e6e3938a567b90f63caab4adf733;hb=306c0929457ca5dd92a8f5edeb72515301e55c87;hp=9e1927db945f34b06a19a10d0783a96bb001136d;hpb=d2762a4f1add2bb04d6fc34d3c7ae03eeb7d500f;p=lilypond.git diff --git a/lily/span-bar-stub-engraver.cc b/lily/span-bar-stub-engraver.cc index 9e1927db94..3517c3f5fd 100644 --- a/lily/span-bar-stub-engraver.cc +++ b/lily/span-bar-stub-engraver.cc @@ -27,6 +27,8 @@ #include "pointer-group-interface.hh" #include "engraver.hh" +#include "translator.icc" + /* The Span_bar_stub_engraver creates SpanBarStub grobs in the contexts that a grouping context contains. For example, if a PianoStaff contains @@ -94,7 +96,7 @@ Span_bar_stub_engraver::process_acknowledged () programming_error ("At least one vertical axis group needs to be created in the first time step."); return; } - Grob *vertical_alignment = Grob::get_root_vertical_alignment (Grob::unsmob (scm_caar (axis_groups_))); + Grob *vertical_alignment = Grob::get_root_vertical_alignment (unsmob (scm_caar (axis_groups_))); if (!vertical_alignment) // we are at the beginning of a score, so no need for stubs return; @@ -113,8 +115,8 @@ Span_bar_stub_engraver::process_acknowledged () vector keep_extent; for (SCM s = axis_groups_; scm_is_pair (s); s = scm_cdr (s)) { - Context *c = Context::unsmob (scm_cdar (s)); - Grob *g = Grob::unsmob (scm_caar (s)); + Context *c = unsmob (scm_cdar (s)); + Grob *g = unsmob (scm_caar (s)); if (!c || !g) continue; if (c->is_removable ()) @@ -163,8 +165,8 @@ Span_bar_stub_engraver::stop_translation_timestep () SCM axis_groups = SCM_EOL; for (SCM s = axis_groups_; scm_is_pair (s); s = scm_cdr (s)) { - Context *c = Context::unsmob (scm_cdar (s)); - Grob *g = Grob::unsmob (scm_caar (s)); + Context *c = unsmob (scm_cdar (s)); + Grob *g = unsmob (scm_caar (s)); if (!c || !g) continue; if (c->is_removable ()) @@ -174,8 +176,6 @@ Span_bar_stub_engraver::stop_translation_timestep () axis_groups_ = axis_groups; } -#include "translator.icc" - ADD_ACKNOWLEDGER (Span_bar_stub_engraver, span_bar); ADD_ACKNOWLEDGER (Span_bar_stub_engraver, hara_kiri_group_spanner); ADD_TRANSLATOR (Span_bar_stub_engraver,