From 5d5a0de694b5f4f630a31d3b3648056429e23464 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 9 Jan 2016 17:20:14 +0800 Subject: [PATCH] Use C++11 initializer list --- src/gui/torrentcontentmodel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/torrentcontentmodel.cpp b/src/gui/torrentcontentmodel.cpp index dd89bf19c..8fe113968 100644 --- a/src/gui/torrentcontentmodel.cpp +++ b/src/gui/torrentcontentmodel.cpp @@ -56,8 +56,7 @@ namespace TorrentContentModel::TorrentContentModel(QObject *parent) : QAbstractItemModel(parent) - , m_rootItem(new TorrentContentModelFolder(QList() << tr("Name") << tr("Size") - << tr("Progress") << tr("Download Priority"))) + , m_rootItem(new TorrentContentModelFolder(QList({ tr("Name"), tr("Size"), tr("Progress"), tr("Download Priority") }))) { }