aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/render/layout_render_object.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/render/layout_render_object.hpp')
-rw-r--r--include/cru/ui/render/layout_render_object.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/cru/ui/render/layout_render_object.hpp b/include/cru/ui/render/layout_render_object.hpp
index 0b60a647..8700b8ba 100644
--- a/include/cru/ui/render/layout_render_object.hpp
+++ b/include/cru/ui/render/layout_render_object.hpp
@@ -3,8 +3,6 @@
#include "cru/platform/graph/util/painter.hpp"
-#include <cassert>
-
namespace cru::ui::render {
template <typename TChildLayoutData>
class LayoutRenderObject : public RenderObject {
@@ -21,7 +19,7 @@ class LayoutRenderObject : public RenderObject {
~LayoutRenderObject() override = default;
ChildLayoutData* GetChildLayoutData(int position) {
- assert(position >= 0 &&
+ Expects(position >= 0 &&
position < static_cast<int>(child_layout_data_.size()));
return &child_layout_data_[position];
}