X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftemplate5.cc;h=8a7183825242a0f934aadf091bce249e50cb0efe;hb=0fe81c70240ecfc7ad462f4c092336a8348f4afc;hp=29bb496ff4aae017b578621880444650889f85d8;hpb=dbe2d4d495590abfa3829f93c99c2ae3a71841f3;p=lilypond.git diff --git a/lily/template5.cc b/lily/template5.cc index 29bb496ff4..8a71838252 100644 --- a/lily/template5.cc +++ b/lily/template5.cc @@ -3,24 +3,18 @@ source file of the GNU LilyPond music typesetter - (c) 1997 Han-Wen Nienhuys + (c) 1997--2004 Han-Wen Nienhuys */ #include -#include "proto.hh" #include "string.hh" #include "moment.hh" #include "real.hh" - #include "interval.tcc" - -template INTERVAL__INSTANTIATE(Rational); -template INTERVAL__INSTANTIATE(int); - #include "compare.hh" Rational -Interval_t::infinity() +Interval_t::infinity () { Rational infty; infty.set_infinite (1); @@ -28,19 +22,11 @@ Interval_t::infinity() } String -Interval_t::T_to_str (Rational a) +Interval_t::T_to_string (Rational a) { - return a.str (); + return a.to_string (); } -int -Interval_t::infinity() -{ - return INT_MAX; -} -String -Interval_t::T_to_str (int i) -{ - return String (i); -} + +template INTERVAL__INSTANTIATE (Rational);