diff options
author | crupest <crupest@outlook.com> | 2020-04-02 20:51:19 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-04-02 20:51:19 +0800 |
commit | e38ea3de29ede0e45aab8e595da5e8e3782a396d (patch) | |
tree | 1e0fae414abea5b5cf1fd4fb4194f8c6a9795d7e /src/win/native/window.cpp | |
parent | 7dd9494e957af8280f7221395333f886c500edf5 (diff) | |
download | cru-e38ea3de29ede0e45aab8e595da5e8e3782a396d.tar.gz cru-e38ea3de29ede0e45aab8e595da5e8e3782a396d.tar.bz2 cru-e38ea3de29ede0e45aab8e595da5e8e3782a396d.zip |
...
Diffstat (limited to 'src/win/native/window.cpp')
-rw-r--r-- | src/win/native/window.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/win/native/window.cpp b/src/win/native/window.cpp index fea269d2..1b590026 100644 --- a/src/win/native/window.cpp +++ b/src/win/native/window.cpp @@ -15,7 +15,6 @@ #include "window_manager.hpp" #include <windowsx.h> -#include <cassert> namespace cru::platform::native::win { inline Point PiToDip(const POINT& pi_point) { @@ -28,7 +27,7 @@ WinNativeWindow::WinNativeWindow(WinUiApplication* application, : application_(application), resolver_(std::make_shared<WinNativeWindowResolver>(this)), parent_window_(parent) { - assert(application); // application can't be null. + Expects(application); // application can't be null. if (parent != nullptr) { throw new std::runtime_error("Can't use a invalid window as parent."); @@ -418,7 +417,7 @@ void WinNativeWindow::OnActivatedInternal() {} void WinNativeWindow::OnDeactivatedInternal() {} void WinNativeWindowResolver::Reset() { - assert(window_); // already reset, can't reset again + Expects(window_); // already reset, can't reset again window_ = nullptr; } } // namespace cru::platform::native::win |