mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-14 07:36:26 +00:00
Use smart pointers for Xlib windows
This commit is contained in:
@@ -108,6 +108,11 @@ struct WindowWayland : IWindow
|
||||
void setCallback(IWindowCallback* cb)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void closeWindow()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void showWindow()
|
||||
@@ -239,9 +244,9 @@ struct WindowWayland : IWindow
|
||||
|
||||
};
|
||||
|
||||
IWindow* _WindowWaylandNew(const std::string& title)
|
||||
std::shared_ptr<IWindow> _WindowWaylandNew(const std::string& title)
|
||||
{
|
||||
return new WindowWayland(title);
|
||||
return std::make_shared<WindowWayland>(title);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user