From b2e8c1829890977c6d610c55e8f2860401a46064 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 11:27:58 -0400 Subject: [PATCH] CStringListModel: Make use of QVector initializer list --- src/Editor/StringEditor/CStringListModel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Editor/StringEditor/CStringListModel.cpp b/src/Editor/StringEditor/CStringListModel.cpp index 42b8bb15..ef5c4b41 100644 --- a/src/Editor/StringEditor/CStringListModel.cpp +++ b/src/Editor/StringEditor/CStringListModel.cpp @@ -25,8 +25,7 @@ void CStringListModel::SetPreviewLanguage(ELanguage InLanguage) if (NumStrings == 0) return; - QVector Roles; - Roles << Qt::UserRole; + const QVector Roles{Qt::UserRole}; emit dataChanged(index(0), index(NumStrings - 1), Roles); }