]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4899/4: Listeners should not be virtual
authorDavid Kastrup <dak@gnu.org>
Sat, 18 Jun 2016 08:13:10 +0000 (10:13 +0200)
committerDavid Kastrup <dak@gnu.org>
Thu, 23 Jun 2016 08:12:24 +0000 (10:12 +0200)
Gregorian_ligature_engraver::listen_pes_or_flexa and
Ligature_engraver::listen_pes_or_flexa were accidentally
declared virtual, but their registration already caters
for what amounts to virtual overrides in effect.

lily/include/gregorian-ligature-engraver.hh
lily/include/ligature-engraver.hh

index e1adc3c6434ebaf5a4a559bb47d921fb564b5150..fcac99c32230806387c2677779e0f7b01b68a08c 100644 (file)
@@ -34,7 +34,7 @@ public:
 protected:
   Gregorian_ligature_engraver ();
 
-  virtual void listen_pes_or_flexa (Stream_event *ev);
+  void listen_pes_or_flexa (Stream_event *ev);
   virtual void build_ligature (Spanner *ligature,
                                vector<Grob_info> const &primitives);
   virtual void transform_heads (Spanner *ligature,
index 726496e91fc208ff3b09a5616b0ac4fe48f7913c..a46c3fe22a0c393ab83577561d4c6558acf79b23 100644 (file)
@@ -32,7 +32,7 @@ protected:
 
   void acknowledge_rest (Grob_info);
   void acknowledge_ligature_head (Grob_info);
-  virtual void listen_ligature (Stream_event *ev);
+  void listen_ligature (Stream_event *ev);
   void process_music ();
   virtual Spanner *create_ligature_spanner () = 0;
   virtual void typeset_ligature (Spanner *ligature,