diff options
Diffstat (limited to 'src/gui/GraphCanvas.cpp')
-rw-r--r-- | src/gui/GraphCanvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp index 391b8729..bd75c352 100644 --- a/src/gui/GraphCanvas.cpp +++ b/src/gui/GraphCanvas.cpp @@ -400,7 +400,7 @@ GraphCanvas::get_port_view(const SPtr<PortModel>& port) } else { module = dynamic_cast<NodeModule*>(_views[port->parent()]); if (module) { - for (const auto& p : *module) { + for (auto* p : *module) { gui::Port* pv = dynamic_cast<gui::Port*>(p); if (pv && pv->model() == port) { return pv; @@ -777,7 +777,7 @@ GraphCanvas::paste() } // Connect objects - for (auto a : clipboard.object(Raul::Path("/"))->arcs()) { + for (const auto& a : clipboard.object(Raul::Path("/"))->arcs()) { _app.interface()->connect( avoider.map_path(parent.child(a.second->tail_path())), avoider.map_path(parent.child(a.second->head_path()))); |