aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/native/god_window.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-12-12 23:26:04 +0800
committercrupest <crupest@outlook.com>2019-12-12 23:26:04 +0800
commitf2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0 (patch)
treeb045d35bb2cf7281ab69abbd51302c85ea9ec3ef /include/cru/win/native/god_window.hpp
parent02f46ada9ef85165759f5e58d665510077149ef3 (diff)
downloadcru-f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0.tar.gz
cru-f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0.tar.bz2
cru-f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0.zip
...
Diffstat (limited to 'include/cru/win/native/god_window.hpp')
-rw-r--r--include/cru/win/native/god_window.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/cru/win/native/god_window.hpp b/include/cru/win/native/god_window.hpp
index 9fd20caa..3cf97e0b 100644
--- a/include/cru/win/native/god_window.hpp
+++ b/include/cru/win/native/god_window.hpp
@@ -12,10 +12,10 @@ class WindowClass;
class GodWindow : public Object {
public:
explicit GodWindow(WinUiApplication* application);
- GodWindow(const GodWindow& other) = delete;
- GodWindow(GodWindow&& other) = delete;
- GodWindow& operator=(const GodWindow& other) = delete;
- GodWindow& operator=(GodWindow&& other) = delete;
+
+ CRU_DELETE_COPY(GodWindow)
+ CRU_DELETE_MOVE(GodWindow)
+
~GodWindow() override;
HWND GetHandle() const { return hwnd_; }
@@ -26,7 +26,7 @@ class GodWindow : public Object {
private:
WinUiApplication* application_;
- std::shared_ptr<WindowClass> god_window_class_;
+ std::unique_ptr<WindowClass> god_window_class_;
HWND hwnd_;
};
-} // namespace cru::win::native \ No newline at end of file
+} // namespace cru::platform::native::win