rename parameter

This commit is contained in:
Tobias Berger 2021-09-21 09:42:07 +02:00
parent 0e6e7268ee
commit e2d2c4489d

View file

@ -94,9 +94,9 @@ namespace FractionNS {
bool Fraction::operator!=(const double n) const { bool Fraction::operator!=(const double n) const {
return (double(m_numerator) / double(m_denominator)) != n; return (double(m_numerator) / double(m_denominator)) != n;
} }
bool Fraction::operator!=(const Fraction& n) const { bool Fraction::operator!=(const Fraction& other) const {
return (this->m_numerator != n.getNumerator()) return (this->m_numerator != other.getNumerator())
|| (this->m_denominator != n.getDenominator()); || (this->m_denominator != other.getDenominator());
} }
Fraction& Fraction::operator+(const int n) const { Fraction& Fraction::operator+(const int n) const {