From fab2d34959c52383f6be3cb6634c6776b41f62a8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 13 Oct 2022 20:27:46 +0100 Subject: Standard typedefs for Node --- ui/builders/join.cpp | 2 +- ui/builders/join.h | 4 ++-- ui/editNetwork.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ui') 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; }; diff --git a/ui/editNetwork.h b/ui/editNetwork.h index 72e0955..6f3b009 100644 --- a/ui/editNetwork.h +++ b/ui/editNetwork.h @@ -21,7 +21,7 @@ public: void render(const Shader &) const override; void render(const UIShader & shader, const UIComponent::Position & pos) const override; - using NetworkClickPos = std::variant; + using NetworkClickPos = std::variant; class Builder { public: -- cgit v1.2.3