X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Frest.cc;h=2dbb2c9f9b3d465d135f65a376fce240cb709c36;hb=0bc7f77ff63d9aa044f7d75f9cce255ed2afc0f2;hp=bf6f43758b0e764d1e0766e6f6548c97e92d454a;hpb=2f36dbf850efac7df59b39f32329714c1a20d251;p=lilypond.git diff --git a/lily/rest.cc b/lily/rest.cc index bf6f43758b..2dbb2c9f9b 100644 --- a/lily/rest.cc +++ b/lily/rest.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1997--2012 Han-Wen Nienhuys + Copyright (C) 1997--2014 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -159,7 +159,7 @@ Rest::calc_cross_staff (SCM smob) make this function easily usable in C++ */ string -Rest::glyph_name (Grob *me, int durlog, string style, bool try_ledgers, +Rest::glyph_name (Grob *me, int durlog, const string &style, bool try_ledgers, Real offset) { bool is_ledgered = false; @@ -217,7 +217,7 @@ Rest::glyph_name (Grob *me, int durlog, string style, bool try_ledgers, actual_style = ""; } - return ("rests." + to_string (durlog) + (is_ledgered ? "o" : "") + return ("rests." + ::to_string (durlog) + (is_ledgered ? "o" : "") + actual_style); }