From 97823939220b73e2996351210a5c5acc97962e2f Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 20:06:37 +0000 Subject: [PATCH] lilypond-0.1.48 --- flower/include/string.hh | 13 +++---------- flower/string.cc | 6 ------ 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/flower/include/string.hh b/flower/include/string.hh index 613202bb8c..3b6f2266fa 100644 --- a/flower/include/string.hh +++ b/flower/include/string.hh @@ -13,8 +13,8 @@ #include #include -#include - +#include "arithmetic-operator.hh" +#include "fproto.hh" #include "string-handle.hh" /* @@ -76,7 +76,6 @@ public: /** init to empty string. This is needed because other constructors are provided.*/ String (); - String (Rational); /// String s = "abc"; String (char const* source); @@ -206,13 +205,7 @@ inline bool operator!=(char const* s1,String s2) { return String (s2) !=s1; } - -inline String -operator + (String s1, String s2) -{ - s1 += s2; - return s1; -} +IMPLEMENT_ARITHMETIC_OPERATOR (String, +); inline ostream & operator << (ostream& os, String d) diff --git a/flower/string.cc b/flower/string.cc index 0e479de3e5..65279ce037 100644 --- a/flower/string.cc +++ b/flower/string.cc @@ -54,12 +54,6 @@ String::operator = (String const&source) return *this; } - -String::String (Rational r) -{ - *this = String_convert::rational_str (r); -} - String::String (double f, char const* fmt) { *this= String_convert::double_str (f,fmt); -- 2.39.5