diff options
| author | practicalswift <[email protected]> | 2018-06-18 07:58:28 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-08-27 18:19:33 +0200 |
| commit | f34c8c466a0e514edac2e8683127b4176ad5d321 (patch) | |
| tree | 587ba001d5d6eaae71d234009098710dd30354c3 /src/qt/peertablemodel.cpp | |
| parent | Merge #14023: Remove accounts rpcs (diff) | |
| download | discoin-f34c8c466a0e514edac2e8683127b4176ad5d321.tar.xz discoin-f34c8c466a0e514edac2e8683127b4176ad5d321.zip | |
Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations.
Diffstat (limited to 'src/qt/peertablemodel.cpp')
| -rw-r--r-- | src/qt/peertablemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/peertablemodel.cpp b/src/qt/peertablemodel.cpp index 59a751fb1..8cfedca57 100644 --- a/src/qt/peertablemodel.cpp +++ b/src/qt/peertablemodel.cpp @@ -65,7 +65,7 @@ public: interfaces::Node::NodesStats nodes_stats; node.getNodesStats(nodes_stats); cachedNodeStats.reserve(nodes_stats.size()); - for (auto& node_stats : nodes_stats) + for (const auto& node_stats : nodes_stats) { CNodeCombinedStats stats; stats.nodeStats = std::get<0>(node_stats); |