Skip to content

Commit ca5e2a1

Browse files
author
Jeff Garzik
committed
Merge pull request #6317
2 parents 13b8282 + 92684bb commit ca5e2a1

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

configure.ac

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
2-
AC_PREREQ([2.60])
2+
AC_PREREQ([2.69])
33
define(_CLIENT_VERSION_MAJOR, 0)
44
define(_CLIENT_VERSION_MINOR, 11)
55
define(_CLIENT_VERSION_REVISION, 99)
@@ -138,8 +138,7 @@ AC_ARG_ENABLE([glibc-back-compat],
138138
[use_glibc_compat=no])
139139

140140
AC_ARG_ENABLE([zmq],
141-
[AC_HELP_STRING([--disable-zmq],
142-
[Disable ZMQ notifications])],
141+
[AS_HELP_STRING([--disable-zmq],[Disable ZMQ notifications])],
143142
[use_zmq=$enableval],
144143
[use_zmq=yes])
145144

src/qt/peertablemodel.cpp

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "guiconstants.h"
99
#include "guiutil.h"
1010

11-
#include "net.h"
1211
#include "sync.h"
1312

1413
#include <QDebug>
@@ -96,18 +95,17 @@ class PeerTablePriv
9695
mapNodeRows.insert(std::pair<NodeId, int>(stats.nodeStats.nodeid, row++));
9796
}
9897

99-
int size()
98+
int size() const
10099
{
101100
return cachedNodeStats.size();
102101
}
103102

104103
CNodeCombinedStats *index(int idx)
105104
{
106-
if(idx >= 0 && idx < cachedNodeStats.size()) {
105+
if (idx >= 0 && idx < cachedNodeStats.size())
107106
return &cachedNodeStats[idx];
108-
} else {
109-
return 0;
110-
}
107+
108+
return 0;
111109
}
112110
};
113111

@@ -171,7 +169,7 @@ QVariant PeerTableModel::data(const QModelIndex &index, int role) const
171169
}
172170
} else if (role == Qt::TextAlignmentRole) {
173171
if (index.column() == Ping)
174-
return (int)(Qt::AlignRight | Qt::AlignVCenter);
172+
return (QVariant)(Qt::AlignRight | Qt::AlignVCenter);
175173
}
176174

177175
return QVariant();
@@ -204,13 +202,8 @@ QModelIndex PeerTableModel::index(int row, int column, const QModelIndex &parent
204202
CNodeCombinedStats *data = priv->index(row);
205203

206204
if (data)
207-
{
208205
return createIndex(row, column, data);
209-
}
210-
else
211-
{
212-
return QModelIndex();
213-
}
206+
return QModelIndex();
214207
}
215208

216209
const CNodeCombinedStats *PeerTableModel::getNodeStats(int idx)

src/qt/rpcconsole.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#include "clientmodel.h"
99
#include "guiutil.h"
10-
#include "peertablemodel.h"
1110
#include "platformstyle.h"
1211

1312
#include "chainparams.h"

0 commit comments

Comments
 (0)