diff options
author | Jeff Garzik <jgarzik@bitpay.com> | 2015-09-16 09:40:53 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@bitpay.com> | 2015-09-16 09:40:53 -0400 |
commit | ca5e2a18648cdc0f2a756e7d549f509adce25b00 (patch) | |
tree | 49e0d4619a32250a5cd97ab401e26f91a91021b1 | |
parent | 13b828270a6f912aeb24dee87108c6bda83d1b96 (diff) | |
parent | 92684bb8728613c828b36711aa2be5f97cf8a0ad (diff) |
Merge pull request #6317
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | src/qt/peertablemodel.cpp | 19 | ||||
-rw-r--r-- | src/qt/rpcconsole.cpp | 1 |
3 files changed, 8 insertions, 17 deletions
diff --git a/configure.ac b/configure.ac index 9955ab9bf7..4bd28c85db 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N) -AC_PREREQ([2.60]) +AC_PREREQ([2.69]) define(_CLIENT_VERSION_MAJOR, 0) define(_CLIENT_VERSION_MINOR, 11) define(_CLIENT_VERSION_REVISION, 99) @@ -138,8 +138,7 @@ AC_ARG_ENABLE([glibc-back-compat], [use_glibc_compat=no]) AC_ARG_ENABLE([zmq], - [AC_HELP_STRING([--disable-zmq], - [Disable ZMQ notifications])], + [AS_HELP_STRING([--disable-zmq],[Disable ZMQ notifications])], [use_zmq=$enableval], [use_zmq=yes]) diff --git a/src/qt/peertablemodel.cpp b/src/qt/peertablemodel.cpp index 85339166b0..770a860544 100644 --- a/src/qt/peertablemodel.cpp +++ b/src/qt/peertablemodel.cpp @@ -8,7 +8,6 @@ #include "guiconstants.h" #include "guiutil.h" -#include "net.h" #include "sync.h" #include <QDebug> @@ -96,18 +95,17 @@ public: mapNodeRows.insert(std::pair<NodeId, int>(stats.nodeStats.nodeid, row++)); } - int size() + int size() const { return cachedNodeStats.size(); } CNodeCombinedStats *index(int idx) { - if(idx >= 0 && idx < cachedNodeStats.size()) { + if (idx >= 0 && idx < cachedNodeStats.size()) return &cachedNodeStats[idx]; - } else { - return 0; - } + + return 0; } }; @@ -171,7 +169,7 @@ QVariant PeerTableModel::data(const QModelIndex &index, int role) const } } else if (role == Qt::TextAlignmentRole) { if (index.column() == Ping) - return (int)(Qt::AlignRight | Qt::AlignVCenter); + return (QVariant)(Qt::AlignRight | Qt::AlignVCenter); } return QVariant(); @@ -204,13 +202,8 @@ QModelIndex PeerTableModel::index(int row, int column, const QModelIndex &parent CNodeCombinedStats *data = priv->index(row); if (data) - { return createIndex(row, column, data); - } - else - { - return QModelIndex(); - } + return QModelIndex(); } const CNodeCombinedStats *PeerTableModel::getNodeStats(int idx) diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index b742a47c9b..ec18ea8f71 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -7,7 +7,6 @@ #include "clientmodel.h" #include "guiutil.h" -#include "peertablemodel.h" #include "platformstyle.h" #include "chainparams.h" |