| 224 | |
| 225 | |
| 226 | void |
| 227 | Connection:: |
| 228 | setNodeToPort(Node& node, |
| 229 | PortType portType, |
| 230 | PortIndex portIndex) |
| 231 | { |
| 232 | auto& nodeWeak = getNode(portType); |
| 233 | |
| 234 | nodeWeak = &node; |
| 235 | |
| 236 | if (portType == PortType::Out) |
| 237 | _outPortIndex = portIndex; |
| 238 | else |
| 239 | _inPortIndex = portIndex; |
| 240 | |
| 241 | _connectionState.setNoRequiredPort(); |
| 242 | |
| 243 | updated(*this); |
| 244 | } |
| 245 | |
| 246 | |
| 247 | void |
nothing calls this directly
no test coverage detected