X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fclef.cc;h=90b5480087bfa0433de2f57270518b7d17a48e42;hb=474c8729dc274a30558102a015a01fa5882673db;hp=04a5537a22f2464500f92ce2ffc35753933df592;hpb=8a719f6eec1bd84269a55d1ec99adb3f17c04e64;p=lilypond.git diff --git a/lily/clef.cc b/lily/clef.cc index 04a5537a22..90b5480087 100644 --- a/lily/clef.cc +++ b/lily/clef.cc @@ -3,15 +3,15 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2006 Han-Wen Nienhuys + (c) 1997--2007 Han-Wen Nienhuys */ #include "clef.hh" -#include "string.hh" -#include "stencil.hh" -#include "item.hh" #include "font-interface.hh" +#include "international.hh" +#include "item.hh" +#include "stencil.hh" MAKE_SCHEME_CALLBACK (Clef, calc_glyph_name, 1); SCM @@ -22,7 +22,7 @@ Clef::calc_glyph_name (SCM smob) if (scm_is_string (glyph)) { - String str = ly_scm2string (glyph); + string str = ly_scm2string (glyph); if (to_boolean (s->get_property ("non-default")) && s->break_status_dir () != RIGHT @@ -31,7 +31,7 @@ Clef::calc_glyph_name (SCM smob) str += "_change"; } - return scm_makfrom0str (str.c_str ()); + return ly_string2scm (str); } s->suicide (); @@ -47,7 +47,7 @@ Clef::print (SCM smob) if (!scm_is_string (glyph_scm)) return SCM_EOL; - String glyph = String (ly_scm2string (glyph_scm)); + string glyph = string (ly_scm2string (glyph_scm)); Font_metric *fm = Font_interface::get_default_font (me); Stencil out = fm->find_by_name (glyph); if (out.is_empty ()) @@ -55,7 +55,7 @@ Clef::print (SCM smob) return out.smobbed_copy (); } -ADD_INTERFACE (Clef, "clef-interface", +ADD_INTERFACE (Clef, "A clef sign", /* properties */