diff --git a/mix/QBigInt.h b/mix/QBigInt.h index b305cd2db..6618c5e64 100644 --- a/mix/QBigInt.h +++ b/mix/QBigInt.h @@ -40,25 +40,25 @@ using BigIntVariant = boost::variant; struct add: public boost::static_visitor { template - BigIntVariant operator()(T1 _value, T2 _otherValue) const { return _value + _otherValue; } + BigIntVariant operator()(T1 const& _value, T2 const& _otherValue) const { return _value + _otherValue; } }; struct subtract: public boost::static_visitor { template - BigIntVariant operator()(T1 _value, T2 _otherValue) const { return _value - _otherValue; } + BigIntVariant operator()(T1 const& _value, T2 const& _otherValue) const { return _value - _otherValue; } }; struct multiply: public boost::static_visitor { template - BigIntVariant operator()(T1 _value, T2 _otherValue) const { return _value * _otherValue; } + BigIntVariant operator()(T1 const& _value, T2 const& _otherValue) const { return _value * _otherValue; } }; struct divide: public boost::static_visitor { template - BigIntVariant operator()(T1 _value, T2 _otherValue) const { return _value / _otherValue; } + BigIntVariant operator()(T1 const& _value, T2 const& _otherValue) const { return _value / _otherValue; } }; class QBigInt: public QObject