CStringListModel: Make use of QVector initializer list

This commit is contained in:
Lioncash 2020-07-10 11:27:58 -04:00
parent 942e707626
commit b2e8c18298
1 changed files with 1 additions and 2 deletions

View File

@ -25,8 +25,7 @@ void CStringListModel::SetPreviewLanguage(ELanguage InLanguage)
if (NumStrings == 0) if (NumStrings == 0)
return; return;
QVector<int> Roles; const QVector<int> Roles{Qt::UserRole};
Roles << Qt::UserRole;
emit dataChanged(index(0), index(NumStrings - 1), Roles); emit dataChanged(index(0), index(NumStrings - 1), Roles);
} }