From 92ca65b35f187b4e10b3259eb45c4dc683bd4eb2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 13 Oct 2022 20:46:48 +0100 Subject: Scoped Builder::Ptr --- ui/editNetwork.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ui') diff --git a/ui/editNetwork.h b/ui/editNetwork.h index 6f3b009..bd01eb8 100644 --- a/ui/editNetwork.h +++ b/ui/editNetwork.h @@ -29,14 +29,14 @@ public: virtual void render(const Shader & shader) const = 0; virtual std::string hint() const = 0; virtual void click(Network *, const GeoData *, const SDL_MouseButtonEvent &, const Ray &) = 0; + + using Ptr = std::unique_ptr; }; private: - using BuilderPtr = std::unique_ptr; - Network * network; - BuilderPtr builder; - Mode mode {builder}; + Builder::Ptr builder; + Mode mode {builder}; Toolbar builderToolbar; }; -- cgit v1.2.3