diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 20:46:48 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 20:46:48 +0100 |
commit | 92ca65b35f187b4e10b3259eb45c4dc683bd4eb2 (patch) | |
tree | abe4258d5c546f60e40533a187c08b711ccc9a10 /ui/editNetwork.h | |
parent | Standard typedefs for Mesh (diff) | |
download | ilt-92ca65b35f187b4e10b3259eb45c4dc683bd4eb2.tar.bz2 ilt-92ca65b35f187b4e10b3259eb45c4dc683bd4eb2.tar.xz ilt-92ca65b35f187b4e10b3259eb45c4dc683bd4eb2.zip |
Scoped Builder::Ptr
Diffstat (limited to 'ui/editNetwork.h')
-rw-r--r-- | ui/editNetwork.h | 8 |
1 files changed, 4 insertions, 4 deletions
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<Builder>; }; private: - using BuilderPtr = std::unique_ptr<Builder>; - Network * network; - BuilderPtr builder; - Mode<BuilderPtr, ModeSecondClick::NoAction> mode {builder}; + Builder::Ptr builder; + Mode<Builder::Ptr, ModeSecondClick::NoAction> mode {builder}; Toolbar builderToolbar; }; |