From 1dab244aaad8694ba37ef43caedd8c8ba0310c00 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 5 Nov 2018 20:54:48 +0800 Subject: ... --- src/ui/window.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/ui/window.cpp') diff --git a/src/ui/window.cpp b/src/ui/window.cpp index 8889e032..323a4307 100644 --- a/src/ui/window.cpp +++ b/src/ui/window.cpp @@ -1,7 +1,5 @@ #include "window.h" -#include - #include "application.h" #include "graph/graph.h" #include "exception.h" @@ -77,9 +75,9 @@ namespace cru return find_result->second; } - Vector WindowManager::GetAllWindows() const + std::vector WindowManager::GetAllWindows() const { - Vector windows; + std::vector windows; for (auto [key, value] : window_map_) windows.push_back(value); return windows; @@ -464,11 +462,10 @@ namespace cru Size Window::OnMeasureContent(const Size& available_size) { - ForeachChild([available_size](Control* control) + for (auto control: GetChildren()) { control->Measure(available_size); - }); - + } return available_size; } -- cgit v1.2.3