From bc1b65f872edf5f493f5fcc9792a37f03d6b7794 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 12 Dec 2017 10:16:55 +0900 Subject: Fix a compiler warning --- events/event.cpp | 2 +- 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(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 _redactedBecause; QString _txnId; }; -- cgit v1.2.3