summaryrefslogtreecommitdiffstats
path: root/src/client/NodeModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/NodeModel.cpp')
-rw-r--r--src/client/NodeModel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/NodeModel.cpp b/src/client/NodeModel.cpp
index ff9a92cd..73ee5a5a 100644
--- a/src/client/NodeModel.cpp
+++ b/src/client/NodeModel.cpp
@@ -140,10 +140,8 @@ NodeModel::add_port(SharedPtr<PortModel> pm)
assert(pm->path().is_child_of(path()));
assert(pm->parent().get() == this);
- Ports::iterator existing = find(_ports.begin(), _ports.end(), pm);
-
// Store should have handled this by merging the two
- assert(existing == _ports.end());
+ assert(find(_ports.begin(), _ports.end(), pm) == _ports.end());
_ports.push_back(pm);
_signal_new_port.emit(pm);