summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/GraphView.cpp')
-rw-r--r--src/gui/GraphView.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/GraphView.cpp b/src/gui/GraphView.cpp
index 9a755ffe..c795861d 100644
--- a/src/gui/GraphView.cpp
+++ b/src/gui/GraphView.cpp
@@ -83,9 +83,8 @@ GraphView::set_graph(SharedPtr<const GraphModel> graph)
_poly_spin->set_increments(1, 4);
_poly_spin->set_value(graph->internal_poly());
- for (Node::Properties::const_iterator i = graph->properties().begin();
- i != graph->properties().end(); ++i)
- property_changed(i->first, i->second);
+ for (const auto& p : graph->properties())
+ property_changed(p.first, p.second);
// Connect model signals to track state
graph->signal_property().connect(