summaryrefslogtreecommitdiffstats
path: root/src/libs/client/ConnectionModel.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/client/ConnectionModel.hpp')
-rw-r--r--src/libs/client/ConnectionModel.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/client/ConnectionModel.hpp b/src/libs/client/ConnectionModel.hpp
index 83ddbd58..5ace402f 100644
--- a/src/libs/client/ConnectionModel.hpp
+++ b/src/libs/client/ConnectionModel.hpp
@@ -62,10 +62,11 @@ private:
assert(_dst_port);
assert(_src_port->parent());
assert(_dst_port->parent());
+ assert(_src_port->path() != _dst_port->path());
}
- SharedPtr<PortModel> _src_port;
- SharedPtr<PortModel> _dst_port;
+ const SharedPtr<PortModel> _src_port;
+ const SharedPtr<PortModel> _dst_port;
};