aboutsummaryrefslogtreecommitdiff
path: root/src/ui/content_control.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-04-02 20:51:19 +0800
committercrupest <crupest@outlook.com>2020-04-02 20:51:19 +0800
commite38ea3de29ede0e45aab8e595da5e8e3782a396d (patch)
tree1e0fae414abea5b5cf1fd4fb4194f8c6a9795d7e /src/ui/content_control.cpp
parent7dd9494e957af8280f7221395333f886c500edf5 (diff)
downloadcru-e38ea3de29ede0e45aab8e595da5e8e3782a396d.tar.gz
cru-e38ea3de29ede0e45aab8e595da5e8e3782a396d.tar.bz2
cru-e38ea3de29ede0e45aab8e595da5e8e3782a396d.zip
...
Diffstat (limited to 'src/ui/content_control.cpp')
-rw-r--r--src/ui/content_control.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/content_control.cpp b/src/ui/content_control.cpp
index 5bc8eda4..5dcd89d9 100644
--- a/src/ui/content_control.cpp
+++ b/src/ui/content_control.cpp
@@ -2,8 +2,6 @@
#include "cru/ui/window.hpp"
-#include <cassert>
-
namespace cru::ui {
ContentControl::ContentControl()
: child_vector_{nullptr}, child_(child_vector_[0]) {}
@@ -11,7 +9,7 @@ ContentControl::ContentControl()
ContentControl::~ContentControl() { delete child_; }
void ContentControl::SetChild(Control* child) {
- assert(!dynamic_cast<Window*>(child)); // Can't add a window as child.
+ Expects(!dynamic_cast<Window*>(child)); // Can't add a window as child.
if (child == child_) return;
const auto window = GetWindow();