From f5b5c8ddc502ec87c1865d6728422b62a246f6d6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Jul 2020 08:38:12 -0400 Subject: [PATCH] CStringEditor: Collapse QList construction into one line --- src/Editor/StringEditor/CStringEditor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Editor/StringEditor/CStringEditor.cpp b/src/Editor/StringEditor/CStringEditor.cpp index 1dd49fda..c7bbfefa 100644 --- a/src/Editor/StringEditor/CStringEditor.cpp +++ b/src/Editor/StringEditor/CStringEditor.cpp @@ -142,8 +142,7 @@ void CStringEditor::InitUI() SET_WINDOWTITLE_APPVARS(WindowTitle); // Initialize the splitter so top split takes as much space as possible - QList SplitterSizes; - SplitterSizes << (height() * 0.95) << (height() * 0.05); + const QList SplitterSizes{static_cast(height() * 0.95), static_cast(height() * 0.05)}; mpUI->splitter->setSizes(SplitterSizes); // Initialize UI