diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-11-29 20:15:45 +0200 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2020-01-15 12:12:43 +0000 |
commit | b8101fb7ac4bfa0e5c0ee2459b24bddaf59fe7c4 (patch) | |
tree | f43e2c7ce84d373cbc4da1abc87109b0720ca74f /src/qt/recentrequeststablemodel.cpp | |
parent | eac49073eb7c5d630dd9a285e36f743fa902c0ee (diff) | |
download | bitcoin-b8101fb7ac4bfa0e5c0ee2459b24bddaf59fe7c4.tar.xz |
Fix comparison function signature
This commit fixes build on CentOS 7 with GCC 4.8.5
Github-Pull: #17634
Rebased-From: b66861e2e5e8a49e11e7489cf22c3007bc7082cc
Diffstat (limited to 'src/qt/recentrequeststablemodel.cpp')
-rw-r--r-- | src/qt/recentrequeststablemodel.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/qt/recentrequeststablemodel.cpp b/src/qt/recentrequeststablemodel.cpp index 1611ec823c..64bfb7d643 100644 --- a/src/qt/recentrequeststablemodel.cpp +++ b/src/qt/recentrequeststablemodel.cpp @@ -11,8 +11,7 @@ #include <clientversion.h> #include <streams.h> -#include <algorithm> - +#include <utility> RecentRequestsTableModel::RecentRequestsTableModel(WalletModel *parent) : QAbstractTableModel(parent), walletModel(parent) @@ -213,10 +212,10 @@ void RecentRequestsTableModel::updateDisplayUnit() updateAmountColumnTitle(); } -bool RecentRequestEntryLessThan::operator()(RecentRequestEntry &left, RecentRequestEntry &right) const +bool RecentRequestEntryLessThan::operator()(const RecentRequestEntry& left, const RecentRequestEntry& right) const { - RecentRequestEntry *pLeft = &left; - RecentRequestEntry *pRight = &right; + const RecentRequestEntry* pLeft = &left; + const RecentRequestEntry* pRight = &right; if (order == Qt::DescendingOrder) std::swap(pLeft, pRight); |