From: Manuel Nickschas Date: Tue, 4 Dec 2018 18:33:36 +0000 (+0100) Subject: client: Don't use list initialization for QStringList X-Git-Tag: 0.13.1~19 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=d2629d3458802f83843a68cb31ccd5beae6bc449;ds=sidebyside client: Don't use list initialization for QStringList The minimal build requirements we defined for the 0.13 branch don't support list initialization for QStringList, so replace the two places where we accidentally slipped that in by the legacy way of doing things. Fixes #1503. --- diff --git a/src/client/networkmodel.cpp b/src/client/networkmodel.cpp index 018ea365..fc6ed982 100644 --- a/src/client/networkmodel.cpp +++ b/src/client/networkmodel.cpp @@ -55,7 +55,7 @@ NetworkItem::NetworkItem(const NetworkId &netid, AbstractTreeItem *parent) QStringList NetworkItem::propertyOrder() const { - static QStringList order{"networkName", "currentServer", "nickCount"}; + static auto order = QStringList() << "networkName" << "currentServer" << "nickCount"; return order; } @@ -300,7 +300,7 @@ BufferItem::BufferItem(const BufferInfo &bufferInfo, AbstractTreeItem *parent) QStringList BufferItem::propertyOrder() const { - static QStringList order{"bufferName", "topic", "nickCount"}; + static auto order = QStringList() << "bufferName" << "topic" << "nickCount"; return order; }