aboutsummaryrefslogtreecommitdiff
path: root/events
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-11-02 00:05:14 +0300
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-11-02 00:05:14 +0300
commite11404c364056f1ae23a1820a6f458275463599c (patch)
tree14108f2df4089f45f741b2abf6733a6eebd03f36 /events
parent08fda4edfb1753aff148a664d623aa2497621965 (diff)
downloadlibquotient-e11404c364056f1ae23a1820a6f458275463599c.tar.gz
libquotient-e11404c364056f1ae23a1820a6f458275463599c.zip
Fixed CI
Diffstat (limited to 'events')
-rw-r--r--events/roommemberevent.cpp9
1 files 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<const char*, 5> membershipStrings =
- { { "invite", "join", "knock", "leave", "ban" } };
+static const std::array<QString, 5> 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)