Use smart pointers for Xlib windows

This commit is contained in:
Jack Andersen
2017-07-16 17:58:18 -10:00
parent b97c82469a
commit 023d129a75
4 changed files with 36 additions and 21 deletions

View File

@@ -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);
}
}