File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1212#include < clientversion.h>
1313#include < streams.h>
1414
15- #include < algorithm>
16-
15+ #include < utility>
1716
1817RecentRequestsTableModel::RecentRequestsTableModel (WalletModel *parent) :
1918 QAbstractTableModel(parent), walletModel(parent)
@@ -214,10 +213,10 @@ void RecentRequestsTableModel::updateDisplayUnit()
214213 updateAmountColumnTitle ();
215214}
216215
217- bool RecentRequestEntryLessThan::operator ()(RecentRequestEntry & left, RecentRequestEntry & right) const
216+ bool RecentRequestEntryLessThan::operator ()(const RecentRequestEntry& left, const RecentRequestEntry& right) const
218217{
219- RecentRequestEntry * pLeft = &left;
220- RecentRequestEntry * pRight = &right;
218+ const RecentRequestEntry* pLeft = &left;
219+ const RecentRequestEntry* pRight = &right;
221220 if (order == Qt::DescendingOrder)
222221 std::swap (pLeft, pRight);
223222
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class RecentRequestEntryLessThan
4545public:
4646 RecentRequestEntryLessThan (int nColumn, Qt::SortOrder fOrder ):
4747 column (nColumn), order(fOrder ) {}
48- bool operator ()(RecentRequestEntry & left, RecentRequestEntry & right) const ;
48+ bool operator ()(const RecentRequestEntry& left, const RecentRequestEntry& right) const ;
4949
5050private:
5151 int column;
You can’t perform that action at this time.
0 commit comments