diff options
Diffstat (limited to 'src/ui/content_control.cpp')
-rw-r--r-- | src/ui/content_control.cpp | 4 |
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(); |