aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/render
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/render')
-rw-r--r--include/cru/ui/render/LayoutRenderObject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/ui/render/LayoutRenderObject.h b/include/cru/ui/render/LayoutRenderObject.h
index 4010ae7c..5cb70680 100644
--- a/include/cru/ui/render/LayoutRenderObject.h
+++ b/include/cru/ui/render/LayoutRenderObject.h
@@ -60,7 +60,7 @@ class LayoutRenderObject : public RenderObject {
}
void ClearChildren() {
- for (auto child : children_) {
+ for (const auto& child : children_) {
auto render_object = child.render_object;
if (render_object) {
render_object->SetParent(nullptr);