summaryrefslogtreecommitdiff
path: root/ui/builders/join.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-12-18 19:56:38 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-12-18 19:56:40 +0000
commit5cba33aedccdfa79f1c291bc1da8ff2223d5c70a (patch)
tree1aeb276c496edbd8beea180d9d032583d27cef49 /ui/builders/join.cpp
parentAdd sanity checking logic to GeoData (diff)
downloadilt-5cba33aedccdfa79f1c291bc1da8ff2223d5c70a.tar.bz2
ilt-5cba33aedccdfa79f1c291bc1da8ff2223d5c70a.tar.xz
ilt-5cba33aedccdfa79f1c291bc1da8ff2223d5c70a.zip
Give UI builders an interface that can be programmatically called
Diffstat (limited to 'ui/builders/join.cpp')
-rw-r--r--ui/builders/join.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/builders/join.cpp b/ui/builders/join.cpp
index 7474c5b..9fbbae9 100644
--- a/ui/builders/join.cpp
+++ b/ui/builders/join.cpp
@@ -46,8 +46,8 @@ BuilderJoin::click(
}
}
-void
+Link::CCollection
BuilderJoin::create(Network * network, const Node::Ptr & p1, const Node::Ptr & p2) const
{
- network->addJoins(p1->pos, p2->pos);
+ return network->addJoins(p1->pos, p2->pos);
}