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/ui/control.cpp | |
parent | 7dd9494e957af8280f7221395333f886c500edf5 (diff) | |
download | cru-e38ea3de29ede0e45aab8e595da5e8e3782a396d.tar.gz cru-e38ea3de29ede0e45aab8e595da5e8e3782a396d.tar.bz2 cru-e38ea3de29ede0e45aab8e595da5e8e3782a396d.zip |
...
Diffstat (limited to 'src/ui/control.cpp')
-rw-r--r-- | src/ui/control.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/control.cpp b/src/ui/control.cpp index e3b7b967..180ba476 100644 --- a/src/ui/control.cpp +++ b/src/ui/control.cpp @@ -7,7 +7,6 @@ #include "cru/ui/window.hpp" #include "routed_event_dispatch.hpp" -#include <cassert> #include <memory> namespace cru::ui { @@ -38,7 +37,7 @@ void Control::_SetDescendantWindow(Window* window) { if (window == nullptr && window_ == nullptr) return; // You can only attach or detach window. - assert((window != nullptr && window_ == nullptr) || + Expects((window != nullptr && window_ == nullptr) || (window == nullptr && window_ != nullptr)); if (window == nullptr) { |