From c2cd59fd985f4a4882d8b841bf9f8525d6e0326e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petter=20R=C3=B8nningen?= Date: Fri, 24 Jul 2020 18:27:17 +0200 Subject: [PATCH] Added const qualifiers to avoid VS2019 errors (#76) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Petter Rønningen --- main/source/util/Balance.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/source/util/Balance.cpp b/main/source/util/Balance.cpp index 90692dc8..833ed0cd 100644 --- a/main/source/util/Balance.cpp +++ b/main/source/util/Balance.cpp @@ -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(); } };