]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/ligature-engraver.cc
axis-group-interface.cc: coding style nit
[lilypond.git] / lily / ligature-engraver.cc
index 81523a0109d5056fc5050c3d7099c503c6736b3b..c4565f8e53e23fcd7d0c45cefcff73a8f5f02f6a 100644 (file)
@@ -14,8 +14,6 @@
 #include "rest.hh"
 #include "spanner.hh"
 #include "stream-event.hh"
-#include "warn.hh"
-
 #include "translator.icc"
 
 /*
@@ -82,7 +80,7 @@ void
 Ligature_engraver::listen_ligature (Stream_event *ev)
 {
   Direction d = to_dir (ev->get_property ("span-direction"));
-  events_drul_[d] = ev;
+  ASSIGN_EVENT_ONCE (events_drul_[d], ev);
 }
 
 void
@@ -92,7 +90,7 @@ Ligature_engraver::process_music ()
     {
       if (!ligature_)
        {
-         events_drul_[STOP]->origin ()->warning (_ ("can't find start of ligature"));
+         events_drul_[STOP]->origin ()->warning (_ ("cannot find start of ligature"));
          return;
        }