From fcca8bc835db65ac170d1148d52a815df8838d53 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 22 Mar 2025 12:17:57 +0000 Subject: Invert how shared/unique is specified for Collection Template param is a pointer now, typedefs added for ease. --- ui/editNetwork.h | 2 +- ui/gameMainWindow.cpp | 2 +- ui/mainApplication.h | 2 +- ui/toolbar.h | 2 +- ui/windowContent.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'ui') diff --git a/ui/editNetwork.h b/ui/editNetwork.h index ae887bd..2fc102a 100644 --- a/ui/editNetwork.h +++ b/ui/editNetwork.h @@ -36,7 +36,7 @@ public: using Ptr = std::unique_ptr; protected: - Collection candidateLinks; + SharedCollection candidateLinks; }; private: diff --git a/ui/gameMainWindow.cpp b/ui/gameMainWindow.cpp index b58f3dc..07901b3 100644 --- a/ui/gameMainWindow.cpp +++ b/ui/gameMainWindow.cpp @@ -32,7 +32,7 @@ GameMainWindow::GameMainWindow(size_t w, size_t h) : WindowContent {w, h}, Scene { uiComponents.create(glm::vec2 {310'727'624, 494'018'810}); auto gms = uiComponents.create(&camera, ScreenAbsCoord {w, h}); - uiComponents.create(gms.get()); + uiComponents.create(gms); } GameMainWindow::~GameMainWindow() { } diff --git a/ui/mainApplication.h b/ui/mainApplication.h index a6cb126..1489587 100644 --- a/ui/mainApplication.h +++ b/ui/mainApplication.h @@ -6,7 +6,7 @@ class MainApplication : public ApplicationBase { public: - using Windows = Collection; + using Windows = SharedCollection; void mainLoop(); protected: diff --git a/ui/toolbar.h b/ui/toolbar.h index ea560f5..b0480e2 100644 --- a/ui/toolbar.h +++ b/ui/toolbar.h @@ -19,5 +19,5 @@ public: bool handleInput(const SDL_Event & e, const Position & parentPos) override; - Collection icons; + UniqueCollection icons; }; diff --git a/ui/windowContent.h b/ui/windowContent.h index 474445a..5437da6 100644 --- a/ui/windowContent.h +++ b/ui/windowContent.h @@ -21,6 +21,6 @@ public: virtual bool handleInput(const SDL_Event & e); protected: - ::Collection uiComponents; + UniqueCollection uiComponents; UIShader uiShader; }; -- cgit v1.2.3