diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-12 10:16:55 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-12 10:16:55 +0900 |
commit | bc1b65f872edf5f493f5fcc9792a37f03d6b7794 (patch) | |
tree | 3199efe4f25b434a1f4899e680e30c4732109c67 | |
parent | 71185be83b646c7d5a2d6d3dc0306710e1f6fdd0 (diff) | |
download | libquotient-bc1b65f872edf5f493f5fcc9792a37f03d6b7794.tar.gz libquotient-bc1b65f872edf5f493f5fcc9792a37f03d6b7794.zip |
Fix a compiler warning
-rw-r--r-- | events/event.cpp | 2 | ||||
-rw-r--r-- | events/event.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/events/event.cpp b/events/event.cpp index 354aed03..1e2d89f2 100644 --- a/events/event.cpp +++ b/events/event.cpp @@ -87,9 +87,9 @@ RoomEvent::RoomEvent(Event::Type type) : Event(type) { } RoomEvent::RoomEvent(Type type, const QJsonObject& rep) : Event(type, rep), _id(rep["event_id"].toString()) , _roomId(rep["room_id"].toString()) + , _senderId(rep["sender"].toString()) , _serverTimestamp( QMatrixClient::fromJson<QDateTime>(rep["origin_server_ts"])) - , _senderId(rep["sender"].toString()) { // if (_id.isEmpty()) // { diff --git a/events/event.h b/events/event.h index 62d9c23b..fa8a58af 100644 --- a/events/event.h +++ b/events/event.h @@ -162,9 +162,9 @@ namespace QMatrixClient private: QString _id; - QDateTime _serverTimestamp; QString _roomId; QString _senderId; + QDateTime _serverTimestamp; QScopedPointer<RedactionEvent> _redactedBecause; QString _txnId; }; |