summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-13 20:46:48 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-13 20:46:48 +0100
commit92ca65b35f187b4e10b3259eb45c4dc683bd4eb2 (patch)
treeabe4258d5c546f60e40533a187c08b711ccc9a10 /ui
parentStandard typedefs for Mesh (diff)
downloadilt-92ca65b35f187b4e10b3259eb45c4dc683bd4eb2.tar.bz2
ilt-92ca65b35f187b4e10b3259eb45c4dc683bd4eb2.tar.xz
ilt-92ca65b35f187b4e10b3259eb45c4dc683bd4eb2.zip
Scoped Builder::Ptr
Diffstat (limited to 'ui')
-rw-r--r--ui/editNetwork.h8
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;
};