From d5a2c876e48668ebb244dd472797ed978230f438 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 20:06:39 +0000 Subject: [PATCH] lilypond-0.1.48 --- flower/string-convert.cc | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/flower/string-convert.cc b/flower/string-convert.cc index 659bf76921..79fbe1829e 100644 --- a/flower/string-convert.cc +++ b/flower/string-convert.cc @@ -4,12 +4,13 @@ --*/ - +#include #include #include #include "libc-extension.hh" #include "string.hh" #include "string-convert.hh" +#include "rational.hh" /** a safe length for stringconversion buffers @@ -240,18 +241,7 @@ String_convert::char_str (char c, int n) String String_convert::rational_str (Rational r) { - char * n = Itoa (r.numerator()); // LEAK???? - - String s = n; - if (r.denominator() != 1) - { - char * d = Itoa (r.denominator()); - s += String ('/') + String (d); - //delete d; - } - /* delete n; - */ - return s; + return r.str (); } String -- 2.39.5