aboutsummaryrefslogtreecommitdiff
path: root/src/qt/peertablemodel.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-06-12 16:49:46 +0200
committerWladimir J. van der Laan <[email protected]>2015-06-12 16:49:53 +0200
commitab0ec6790355473e96176ec3c2c2b1564ddb296d (patch)
tree41bb168d41ff3e72f194e7c7e064e50f836451fc /src/qt/peertablemodel.cpp
parentMerge pull request #6256 (diff)
parent[Qt] deselect peer when switching away from peers tab in RPC console (diff)
downloaddiscoin-ab0ec6790355473e96176ec3c2c2b1564ddb296d.tar.xz
discoin-ab0ec6790355473e96176ec3c2c2b1564ddb296d.zip
Merge pull request #6209
e059726 [Qt] deselect peer when switching away from peers tab in RPC console (Philip Kaufmann) 7211ada [Qt] replace Boost foreach with Qt version peertablemodel.cpp (Philip Kaufmann) 1b0db7b [Qt] extend rpc console peers tab (Philip Kaufmann)
Diffstat (limited to 'src/qt/peertablemodel.cpp')
-rw-r--r--src/qt/peertablemodel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/peertablemodel.cpp b/src/qt/peertablemodel.cpp
index 220f273d0..f5904a4d8 100644
--- a/src/qt/peertablemodel.cpp
+++ b/src/qt/peertablemodel.cpp
@@ -63,11 +63,12 @@ public:
#if QT_VERSION >= 0x040700
cachedNodeStats.reserve(vNodes.size());
#endif
- BOOST_FOREACH(CNode* pnode, vNodes)
+ foreach (CNode* pnode, vNodes)
{
CNodeCombinedStats stats;
stats.nodeStateStats.nMisbehavior = 0;
stats.nodeStateStats.nSyncHeight = -1;
+ stats.nodeStateStats.nCommonHeight = -1;
stats.fNodeStateStatsAvailable = false;
pnode->copyStats(stats.nodeStats);
cachedNodeStats.append(stats);
@@ -91,7 +92,7 @@ public:
// build index map
mapNodeRows.clear();
int row = 0;
- BOOST_FOREACH(CNodeCombinedStats &stats, cachedNodeStats)
+ foreach (const CNodeCombinedStats& stats, cachedNodeStats)
mapNodeRows.insert(std::pair<NodeId, int>(stats.nodeStats.nodeid, row++));
}