From: fred Date: Sun, 24 Mar 2002 20:06:37 +0000 (+0000) Subject: lilypond-0.1.48 X-Git-Tag: release/1.5.59~3388 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=97823939220b73e2996351210a5c5acc97962e2f;p=lilypond.git lilypond-0.1.48 --- 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);