mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 07:39:08 +01:00
Fix comparison function signature
This commit fixes build on CentOS 7 with GCC 4.8.5
Github-Pull: #17634
Rebased-From: b66861e2e5
This commit is contained in:
committed by
João Barbosa
parent
eac49073eb
commit
b8101fb7ac
@@ -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);
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class RecentRequestEntryLessThan
|
||||
public:
|
||||
RecentRequestEntryLessThan(int nColumn, Qt::SortOrder fOrder):
|
||||
column(nColumn), order(fOrder) {}
|
||||
bool operator()(RecentRequestEntry &left, RecentRequestEntry &right) const;
|
||||
bool operator()(const RecentRequestEntry& left, const RecentRequestEntry& right) const;
|
||||
|
||||
private:
|
||||
int column;
|
||||
|
||||
Reference in New Issue
Block a user