From fa7b6a1bfef1669732bdaa11f93fc3dad3f996c8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Jul 2020 08:40:58 -0400 Subject: [PATCH] CCharacterEditor: Collapse QList construction into one line --- src/Editor/CharacterEditor/CCharacterEditor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Editor/CharacterEditor/CCharacterEditor.cpp b/src/Editor/CharacterEditor/CCharacterEditor.cpp index 0df2b592..433067f9 100644 --- a/src/Editor/CharacterEditor/CCharacterEditor.cpp +++ b/src/Editor/CharacterEditor/CCharacterEditor.cpp @@ -62,8 +62,7 @@ CCharacterEditor::CCharacterEditor(CAnimSet *pSet, QWidget *parent) // Init skeleton tree view ui->SkeletonHierarchyTreeView->setModel(&mSkeletonModel); - QList SplitterSizes; - SplitterSizes << width() * 0.2 << width() * 0.8; + const QList SplitterSizes{static_cast(width() * 0.2), static_cast(width() * 0.8)}; ui->splitter->setSizes(SplitterSizes); connect(ui->SkeletonHierarchyTreeView->selectionModel(), &QItemSelectionModel::currentChanged, this,