aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/native/window_class.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/win/native/window_class.hpp')
-rw-r--r--include/cru/win/native/window_class.hpp13
1 files changed, 6 insertions, 7 deletions
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