From e11404c364056f1ae23a1820a6f458275463599c Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 2 Nov 2017 00:05:14 +0300 Subject: Fixed CI --- events/roommemberevent.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/events/roommemberevent.cpp b/events/roommemberevent.cpp index 40e14c39..3e1ff8c1 100644 --- a/events/roommemberevent.cpp +++ b/events/roommemberevent.cpp @@ -22,8 +22,11 @@ using namespace QMatrixClient; -static const std::array membershipStrings = - { { "invite", "join", "knock", "leave", "ban" } }; +static const std::array membershipStrings = { { + QStringLiteral("invite"), QStringLiteral("join"), + QStringLiteral("knock"), QStringLiteral("leave"), + QStringLiteral("ban") +} }; namespace QMatrixClient { @@ -32,7 +35,7 @@ namespace QMatrixClient { MembershipType operator()(const QJsonValue& jv) const { - const auto membershipString = jv.toString(); + const auto& membershipString = jv.toString(); for (auto it = membershipStrings.begin(); it != membershipStrings.end(); ++it) if (membershipString == *it) -- cgit v1.2.3