mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-02 03:13:38 +00:00
CStringListModel: Make use of QVector initializer list
This commit is contained in:
parent
942e707626
commit
b2e8c18298
@ -25,8 +25,7 @@ void CStringListModel::SetPreviewLanguage(ELanguage InLanguage)
|
||||
if (NumStrings == 0)
|
||||
return;
|
||||
|
||||
QVector<int> Roles;
|
||||
Roles << Qt::UserRole;
|
||||
const QVector<int> Roles{Qt::UserRole};
|
||||
emit dataChanged(index(0), index(NumStrings - 1), Roles);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user