diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-02 14:40:05 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-02 14:40:05 +0900 |
commit | 7ef14023ab337972530bb3f4ad35f8daa326233b (patch) | |
tree | ca15ac9869882ceaed5c8a1aa2a082b4d85096df /lib/events/roommessageevent.cpp | |
parent | c36f899c4485ebf602fcaf225f41c64fbea773c3 (diff) | |
download | libquotient-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.cpp | 2 |
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)); |