Use C++11 initializer list

This commit is contained in:
Chocobo1 2016-01-09 17:20:14 +08:00 committed by sledgehammer999
parent 145180c2a1
commit 5d5a0de694

View file

@ -56,8 +56,7 @@ namespace
TorrentContentModel::TorrentContentModel(QObject *parent)
: QAbstractItemModel(parent)
, m_rootItem(new TorrentContentModelFolder(QList<QVariant>() << tr("Name") << tr("Size")
<< tr("Progress") << tr("Download Priority")))
, m_rootItem(new TorrentContentModelFolder(QList<QVariant>({ tr("Name"), tr("Size"), tr("Progress"), tr("Download Priority") })))
{
}