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 {
return (double(m_numerator) / double(m_denominator)) != n;
}
bool Fraction::operator!=(const Fraction& n) const {
return (this->m_numerator != n.getNumerator())
|| (this->m_denominator != n.getDenominator());
bool Fraction::operator!=(const Fraction& other) const {
return (this->m_numerator != other.getNumerator())
|| (this->m_denominator != other.getDenominator());
}
Fraction& Fraction::operator+(const int n) const {