summaryrefslogtreecommitdiff
path: root/ui/builders
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-13 20:27:46 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-13 20:27:46 +0100
commitfab2d34959c52383f6be3cb6634c6776b41f62a8 (patch)
treecbf8f4b717d50af882689b5e012c2e3737f44077 /ui/builders
parentInheritable of standard typedefs (diff)
downloadilt-fab2d34959c52383f6be3cb6634c6776b41f62a8.tar.bz2
ilt-fab2d34959c52383f6be3cb6634c6776b41f62a8.tar.xz
ilt-fab2d34959c52383f6be3cb6634c6776b41f62a8.zip
Standard typedefs for Node
Diffstat (limited to 'ui/builders')
-rw-r--r--ui/builders/join.cpp2
-rw-r--r--ui/builders/join.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/builders/join.cpp b/ui/builders/join.cpp
index 90b1d61..cc2ca2d 100644
--- a/ui/builders/join.cpp
+++ b/ui/builders/join.cpp
@@ -37,7 +37,7 @@ BuilderJoin::click(Network * network, const GeoData *, const SDL_MouseButtonEven
}
void
-BuilderJoin::create(Network * network, const NodePtr & p1, const NodePtr & p2) const
+BuilderJoin::create(Network * network, const Node::Ptr & p1, const Node::Ptr & p2) const
{
network->addJoins(p1->pos, p2->pos);
}
diff --git a/ui/builders/join.h b/ui/builders/join.h
index d4fb534..30d39cd 100644
--- a/ui/builders/join.h
+++ b/ui/builders/join.h
@@ -9,7 +9,7 @@ class BuilderJoin : public EditNetwork::Builder {
std::string hint() const override;
void click(Network * network, const GeoData * geoData, const SDL_MouseButtonEvent & e, const Ray & ray) override;
- void create(Network * network, const NodePtr & p1, const NodePtr & p2) const;
+ void create(Network * network, const Node::Ptr & p1, const Node::Ptr & p2) const;
- NodePtr p1;
+ Node::Ptr p1;
};