From d2629d3458802f83843a68cb31ccd5beae6bc449 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Tue, 4 Dec 2018 19:33:36 +0100 Subject: [PATCH] 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. --- src/client/networkmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1