diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-02-18 07:00:28 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-02-18 07:00:28 +0900 |
commit | 9ef28a3b43dc576716ace005e300b43c3af74b9f (patch) | |
tree | b69e672238703a20c03052e7dbad9e789e0cc78c | |
parent | ad5d44f31b3ab7e582b84ab05161c97cbc7eefc8 (diff) | |
download | libquotient-9ef28a3b43dc576716ace005e300b43c3af74b9f.tar.gz libquotient-9ef28a3b43dc576716ace005e300b43c3af74b9f.zip |
Room: fix building with MSVC
-rw-r--r-- | lib/room.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index b13e7873..f6956d82 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -2214,14 +2214,14 @@ Room::Changes Room::processStateEvent(const RoomEvent& e) return OtherChange; } , [this] (const RoomTombstoneEvent& evt) { - const auto newRoomId = evt.successorRoomId(); - if (auto* newRoom = connection()->room(newRoomId)) - emit upgraded(evt.serverMessage(), newRoom); + const auto successorId = evt.successorRoomId(); + if (auto* successor = connection()->room(successorId)) + emit upgraded(evt.serverMessage(), successor); else connectUntil(connection(), &Connection::loadedRoomState, this, - [this,newRoomId,serverMsg=evt.serverMessage()] + [this,successorId,serverMsg=evt.serverMessage()] (Room* newRoom) { - if (newRoom->id() != newRoomId) + if (newRoom->id() != successorId) return false; emit upgraded(serverMsg, newRoom); return true; |