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,