aboutsummaryrefslogtreecommitdiff
path: root/src/win/native/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/win/native/window.cpp')
-rw-r--r--src/win/native/window.cpp5
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