Added const qualifiers to avoid VS2019 errors (#76)

Co-authored-by: Petter Rønningen <petter.ronningen@sintef.no>
This commit is contained in:
Petter Rønningen 2020-07-24 18:27:17 +02:00 committed by GitHub
parent 2fb18b989f
commit c2cd59fd98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,11 +33,11 @@ using std::vector;
struct BalanceListenerSort
{
bool operator()(const BalanceChangeListener* lhs, const BalanceChangeListener* rhs)
bool operator()(const BalanceChangeListener* lhs, const BalanceChangeListener* rhs) const
{ return lhs->getBalanceChangeListenerID() < rhs->getBalanceChangeListenerID(); }
bool operator()(const BalanceChangeListener* lhs, const unsigned int rhs)
bool operator()(const BalanceChangeListener* lhs, const unsigned int rhs) const
{ return lhs->getBalanceChangeListenerID() < rhs; }
bool operator()(const unsigned int lhs, const BalanceChangeListener* rhs)
bool operator()(const unsigned int lhs, const BalanceChangeListener* rhs) const
{ return lhs < rhs->getBalanceChangeListenerID(); }
};