File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 12
12
#include < clientversion.h>
13
13
#include < streams.h>
14
14
15
- #include < algorithm>
16
-
15
+ #include < utility>
17
16
18
17
RecentRequestsTableModel::RecentRequestsTableModel (WalletModel *parent) :
19
18
QAbstractTableModel(parent), walletModel(parent)
@@ -214,10 +213,10 @@ void RecentRequestsTableModel::updateDisplayUnit()
214
213
updateAmountColumnTitle ();
215
214
}
216
215
217
- bool RecentRequestEntryLessThan::operator ()(RecentRequestEntry & left, RecentRequestEntry & right) const
216
+ bool RecentRequestEntryLessThan::operator ()(const RecentRequestEntry& left, const RecentRequestEntry& right) const
218
217
{
219
- RecentRequestEntry * pLeft = &left;
220
- RecentRequestEntry * pRight = &right;
218
+ const RecentRequestEntry* pLeft = &left;
219
+ const RecentRequestEntry* pRight = &right;
221
220
if (order == Qt::DescendingOrder)
222
221
std::swap (pLeft, pRight);
223
222
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class RecentRequestEntryLessThan
45
45
public:
46
46
RecentRequestEntryLessThan (int nColumn, Qt::SortOrder fOrder ):
47
47
column (nColumn), order(fOrder ) {}
48
- bool operator ()(RecentRequestEntry & left, RecentRequestEntry & right) const ;
48
+ bool operator ()(const RecentRequestEntry& left, const RecentRequestEntry& right) const ;
49
49
50
50
private:
51
51
int column;
You can’t perform that action at this time.
0 commit comments