aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roommessageevent.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-04-02 14:40:05 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-04-02 14:40:05 +0900
commit7ef14023ab337972530bb3f4ad35f8daa326233b (patch)
treeca15ac9869882ceaed5c8a1aa2a082b4d85096df /lib/events/roommessageevent.cpp
parentc36f899c4485ebf602fcaf225f41c64fbea773c3 (diff)
downloadlibquotient-7ef14023ab337972530bb3f4ad35f8daa326233b.tar.gz
libquotient-7ef14023ab337972530bb3f4ad35f8daa326233b.zip
Fixes according to results of static analysis
Many thanks to clang-tidy and clazy authors for the tools, and to Qt Creator developers for making them easily available in the IDE.
Diffstat (limited to 'lib/events/roommessageevent.cpp')
-rw-r--r--lib/events/roommessageevent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/roommessageevent.cpp b/lib/events/roommessageevent.cpp
index dec0ca50..1a4e74bf 100644
--- a/lib/events/roommessageevent.cpp
+++ b/lib/events/roommessageevent.cpp
@@ -87,7 +87,7 @@ RoomMessageEvent::RoomMessageEvent(const QJsonObject& obj)
_plainBody = content["body"].toString();
_msgtype = content["msgtype"].toString();
- for (auto mt: msgTypes)
+ for (const auto& mt: msgTypes)
if (mt.jsonType == _msgtype)
_content.reset(mt.maker(content));