X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fparenthesis-engraver.cc;h=dcbd506a4a5326ec6fd8524f13fd5298ac07a453;hb=cfbda61ff9743a8c32b2057ede4bc8407172c936;hp=d021be9be45529bf262b87970abaa0c5aa54f465;hpb=9e781b7dc83b60a543ce218aa1a5f139f74c760f;p=lilypond.git diff --git a/lily/parenthesis-engraver.cc b/lily/parenthesis-engraver.cc index d021be9be4..dcbd506a4a 100644 --- a/lily/parenthesis-engraver.cc +++ b/lily/parenthesis-engraver.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2005--2014 Han-Wen Nienhuys + Copyright (C) 2005--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify @@ -22,7 +22,6 @@ #include "item.hh" #include "pointer-group-interface.hh" -#include "simple-closure.hh" #include "stream-event.hh" #include "warn.hh" @@ -33,7 +32,7 @@ class Parenthesis_engraver : public Engraver TRANSLATOR_DECLARATIONS (Parenthesis_engraver); protected: - DECLARE_ACKNOWLEDGER (grob); + void acknowledge_grob (Grob_info); }; Parenthesis_engraver::Parenthesis_engraver () @@ -67,13 +66,18 @@ Parenthesis_engraver::acknowledge_grob (Grob_info info) } else { - programming_error ("Don't know how to parenthesize spanners."); + info.grob ()->warning ("Don't know how to parenthesize spanners."); } } } } -ADD_ACKNOWLEDGER (Parenthesis_engraver, grob); +void +Parenthesis_engraver::boot () +{ + ADD_ACKNOWLEDGER (Parenthesis_engraver, grob); +} + ADD_TRANSLATOR (Parenthesis_engraver, /* doc */ "Parenthesize objects whose music cause has the"