diff options
author | crupest <crupest@outlook.com> | 2018-09-11 00:35:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-11 00:35:57 +0800 |
commit | e2dab3893a8be43de0e50587c85df9e11abf87fe (patch) | |
tree | 1e95bcd4719a1b558a6ba641d4d655e190678b05 /CruUI/ui/control.cpp | |
parent | 0607ef5f16327e79915676aceec10f2e3037e719 (diff) | |
download | cru-e2dab3893a8be43de0e50587c85df9e11abf87fe.tar.gz cru-e2dab3893a8be43de0e50587c85df9e11abf87fe.tar.bz2 cru-e2dab3893a8be43de0e50587c85df9e11abf87fe.zip |
...
Diffstat (limited to 'CruUI/ui/control.cpp')
-rw-r--r-- | CruUI/ui/control.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/CruUI/ui/control.cpp b/CruUI/ui/control.cpp index 73981891..41693ed8 100644 --- a/CruUI/ui/control.cpp +++ b/CruUI/ui/control.cpp @@ -429,9 +429,8 @@ namespace cru { } }; - Size size_for_children; // NOLINT(cppcoreguidelines-pro-type-member-init) - size_for_children.width = get_available_length_for_child(layout_params->width, available_size.width); - size_for_children.height = get_available_length_for_child(layout_params->height, available_size.height); + const Size size_for_children(get_available_length_for_child(layout_params->width, available_size.width), + get_available_length_for_child(layout_params->height, available_size.height)); auto max_child_size = Size::zero; ForeachChild([&](Control* control) |