diff options
Diffstat (limited to 'lib/events/directchatevent.cpp')
-rw-r--r-- | lib/events/directchatevent.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/events/directchatevent.cpp b/lib/events/directchatevent.cpp index 63d638a3..266d60d8 100644 --- a/lib/events/directchatevent.cpp +++ b/lib/events/directchatevent.cpp @@ -18,18 +18,14 @@ #include "directchatevent.h" -#include "converters.h" +#include <QtCore/QJsonArray> using namespace QMatrixClient; -DirectChatEvent::DirectChatEvent(const QJsonObject& obj) - : Event(Type::DirectChat, obj) -{ } - QMultiHash<QString, QString> DirectChatEvent::usersToDirectChats() const { QMultiHash<QString, QString> result; - const auto json = contentJson(); + const auto& json = contentJson(); for (auto it = json.begin(); it != json.end(); ++it) { // Beware of range-for's over temporary returned from temporary |