aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/render/LayoutRenderObject.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-25 17:56:35 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-25 17:56:35 +0800
commit12007f9876011c56479f2af75d1657f0c50166ed (patch)
tree089c9f5cfbce25b1339615b68ae7a9cda4dc9760 /include/cru/ui/render/LayoutRenderObject.h
parent376d5bfe0f3b9658cbf2d4ca9b00c0600341ee85 (diff)
downloadcru-12007f9876011c56479f2af75d1657f0c50166ed.tar.gz
cru-12007f9876011c56479f2af75d1657f0c50166ed.tar.bz2
cru-12007f9876011c56479f2af75d1657f0c50166ed.zip
Fix a wrong copy leading to win dynamic build failure.
Diffstat (limited to 'include/cru/ui/render/LayoutRenderObject.h')
-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);