mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-13 23:26:16 +00:00
Use smart pointers for Xlib windows
This commit is contained in:
@@ -10,7 +10,7 @@ DBusConnection* RegisterDBus(const char* appName, bool& isFirst);
|
||||
namespace boo
|
||||
{
|
||||
|
||||
IWindow* _WindowWaylandNew(const std::string& title);
|
||||
std::shared_ptr<IWindow> _WindowWaylandNew(const std::string& title);
|
||||
|
||||
class ApplicationWayland final : public IApplication
|
||||
{
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
return m_args;
|
||||
}
|
||||
|
||||
IWindow* newWindow(const std::string& title, uint32_t drawSamples)
|
||||
std::shared_ptr<IWindow> newWindow(const std::string& title, uint32_t drawSamples)
|
||||
{
|
||||
return _WindowWaylandNew(title);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user