]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/kievan-ligature-engraver.cc
send_stream_event(...); macro should only produce one statement
[lilypond.git] / lily / kievan-ligature-engraver.cc
index 85d6d8dc0fb66dcf0eb85d9cb4603908c24e0eef..0439640c2f30f50ce8a521840c3bd438855c93c2 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2013--2014 Aleksandr Andreev <aleksandr.andreev@gmail.com>
+  Copyright (C) 2013--2015 Aleksandr Andreev <aleksandr.andreev@gmail.com>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -29,6 +29,8 @@
 
 #include "translator.icc"
 
+using std::vector;
+
 class Kievan_ligature_engraver : public Coherent_ligature_engraver
 {
 
@@ -81,7 +83,7 @@ Kievan_ligature_engraver::fold_up_primitives (vector<Grob_info> const &primitive
          first = current;
 
       // must keep track of accidentals in spacing problem
-      Grob *acc_gr = unsmob_grob (current->get_object ("accidental-grob"));
+      Grob *acc_gr = unsmob<Grob> (current->get_object ("accidental-grob"));
       if (acc_gr && i > 0)
         {
            Interval acc_ext = acc_gr->extent (acc_gr, X_AXIS);
@@ -107,7 +109,7 @@ Kievan_ligature_engraver::fold_up_primitives (vector<Grob_info> const &primitive
       if (i < primitives.size () - 1)
         {
            Item *next = dynamic_cast<Item *> (primitives[i + 1].grob ());
-           Grob *acc_gr = unsmob_grob (next->get_object ("accidental-grob"));
+           Grob *acc_gr = unsmob<Grob> (next->get_object ("accidental-grob"));
            if (acc_gr)
              {
                 Interval acc_ext = acc_gr->extent (acc_gr, X_AXIS);