From f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 12 Dec 2019 23:26:04 +0800 Subject: ... --- include/cru/win/native/window_class.hpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'include/cru/win/native/window_class.hpp') diff --git a/include/cru/win/native/window_class.hpp b/include/cru/win/native/window_class.hpp index fec3b32e..fd5102a5 100644 --- a/include/cru/win/native/window_class.hpp +++ b/include/cru/win/native/window_class.hpp @@ -8,12 +8,11 @@ namespace cru::platform::native::win { class WindowClass : public Object { public: - WindowClass(const std::wstring& name, WNDPROC window_proc, - HINSTANCE h_instance); - WindowClass(const WindowClass& other) = delete; - WindowClass(WindowClass&& other) = delete; - WindowClass& operator=(const WindowClass& other) = delete; - WindowClass& operator=(WindowClass&& other) = delete; + WindowClass(std::wstring name, WNDPROC window_proc, HINSTANCE h_instance); + + CRU_DELETE_COPY(WindowClass) + CRU_DELETE_MOVE(WindowClass) + ~WindowClass() override = default; const wchar_t* GetName() const { return name_.c_str(); } @@ -24,4 +23,4 @@ class WindowClass : public Object { std::wstring name_; ATOM atom_; }; -} // namespace cru::win::native +} // namespace cru::platform::native::win -- cgit v1.2.3