X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=flower%2Finclude%2Frational.hh;h=8583de70e2982368077d2b6575ea112a705a0ffe;hb=e7aa6c445f463844dbaa52d38ea4aac2882b5601;hp=b6c02a8f58ac5a8ff0ea2d044f820de1d40fbda5;hpb=b7a0cffbf9d1069860368f289a5b50e9d1d90ba8;p=lilypond.git diff --git a/flower/include/rational.hh b/flower/include/rational.hh index b6c02a8f58..8583de70e2 100644 --- a/flower/include/rational.hh +++ b/flower/include/rational.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1997--2009 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 @@ -74,7 +74,8 @@ public: Rational (Rational const &r) { copy (r);} Rational &operator = (Rational const &r) { - copy (r); return *this; + copy (r); + return *this; } Rational &operator *= (Rational); @@ -89,11 +90,11 @@ public: #include "arithmetic-operator.hh" -IMPLEMENT_ARITHMETIC_OPERATOR (Rational, /); +IMPLEMENT_ARITHMETIC_OPERATOR (Rational, / ); IMPLEMENT_ARITHMETIC_OPERATOR (Rational, +); IMPLEMENT_ARITHMETIC_OPERATOR (Rational, *); IMPLEMENT_ARITHMETIC_OPERATOR (Rational, -); -IMPLEMENT_ARITHMETIC_OPERATOR (Rational, %); +IMPLEMENT_ARITHMETIC_OPERATOR (Rational, % ); INSTANTIATE_COMPARE (Rational const &, Rational::compare);