]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/gregorian-ligature.cc
* buildscripts/analyse-cxx-log.py: new file. Read compile log to
[lilypond.git] / lily / gregorian-ligature.cc
index 042457ea341565aebcbc908b48154d7bebee0e41..747a97bb1de4140ec988f2680ac36ce813f1bd92 100644 (file)
@@ -1,19 +1,21 @@
-/*   
+/*
   gregorian-ligature.cc -- implement Gregorian_ligature
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2003--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 2003--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
-#include "grob.hh"
+
 #include "gregorian-ligature.hh"
+
+#include "grob.hh"
 #include "string.hh"
 
 void check_prefix (String name, int mask, int prefix_set, String *str)
 {
   if (prefix_set & mask)
     {
-      if (!str->is_empty ())
+      if (!str->empty ())
        *str += ", ";
       *str += name;
     }
@@ -23,8 +25,8 @@ String
 Gregorian_ligature::prefixes_to_str (Grob *primitive)
 {
   String str;
-  int prefix_set =
-    gh_scm2int (primitive->get_grob_property ("prefix-set"));
+  int prefix_set
+    = scm_to_int (primitive->get_property ("prefix-set"));
   check_prefix ("virga", VIRGA, prefix_set, &str);
   check_prefix ("stropha", STROPHA, prefix_set, &str);
   check_prefix ("inclinatum", INCLINATUM, prefix_set, &str);
@@ -46,7 +48,7 @@ Gregorian_ligature::prefixes_to_str (Grob *primitive)
   by code of GregorianLigatureEngraver that is virtually invoked by a
   subclass like VaticanaLigatureEngraver.  The property is lateron
   read by the associated item class, such as VaticanaLigature.--jr
- */
+*/
 ADD_INTERFACE (Gregorian_ligature, "gregorian-ligature-interface",
               "A gregorian ligature",
               "virga stropha inclinatum auctum descendens ascendens "