From 62fda783f9f5a44c6f6595a414e889b620a01edf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 11:57:56 -0400 Subject: [PATCH] CResourceBrowser: Make use of QList's initializer list --- src/Editor/ResourceBrowser/CResourceBrowser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Editor/ResourceBrowser/CResourceBrowser.cpp b/src/Editor/ResourceBrowser/CResourceBrowser.cpp index 7a9c2708..b0e208e1 100644 --- a/src/Editor/ResourceBrowser/CResourceBrowser.cpp +++ b/src/Editor/ResourceBrowser/CResourceBrowser.cpp @@ -137,7 +137,10 @@ CResourceBrowser::CResourceBrowser(QWidget *pParent) #endif // Resize splitter - mpUI->splitter->setSizes( QList() << width() * 0.4 << width() * 0.6 ); + mpUI->splitter->setSizes({ + static_cast(width() * 0.4), + static_cast(width() * 0.6), + }); // Create context menu for the resource table new CResourceTableContextMenu(this, mpUI->ResourceTableView, mpModel, mpProxyModel);