diff --git a/fraction.cpp b/fraction.cpp index 7b14cb4..22de724 100644 --- a/fraction.cpp +++ b/fraction.cpp @@ -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 {