Commit 6e341ad6 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Remove Ratio(const Ratio & copy_ratio)

It's useless and makes gcc complain because this one exists and not the
operator= and that's fishy
parent f5b530a4
Pipeline #247383 canceled with stage
in 42 seconds
......@@ -48,16 +48,6 @@ Ratio::Ratio(int pnumerator, int pdenominator, bool reduce_fraction) : m_numerat
reduce();
}
/* copy constructor */
Ratio::Ratio(const Ratio & copy_ratio)
{
#ifdef DEBUG
qDebug() << "copy constructor ratio";
#endif
setNumerator(copy_ratio.numerator(), false);
setDenominator(copy_ratio.denominator(), false);
}
/* destructor */
Ratio::~Ratio()
{
......
......@@ -27,9 +27,6 @@ public:
/** constructor with reduce option */
Ratio(int pnumerator, int pdenominator, bool reduce_fraction);
/** copy constructor */
Ratio(const Ratio & copy_ratio);
/** destructor */
~Ratio();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment