Ownership of Platform in part of the code.

This commit is contained in:
2025-04-19 01:02:59 -04:00
parent 4ba2146cd1
commit 918a283748
3 changed files with 6 additions and 7 deletions

View File

@ -157,7 +157,7 @@ private:
~Anchor ();
};
Platform *platform;
std::unique_ptr< Platform > platform;
View *view;
std::unique_ptr< Widget > topLevel;
Widget *widgetAtPoint;
@ -349,7 +349,7 @@ public:
inline Platform *getPlatform ()
{
return platform;
return platform.get();
}
/* delegated */