client: Don't use list initialization for QStringList
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 4 Dec 2018 18:33:36 +0000 (19:33 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Dec 2018 20:46:44 +0000 (21:46 +0100)
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.

src/client/networkmodel.cpp

index 018ea36..fc6ed98 100644 (file)
@@ -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;
 }