aboutsummaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-25 17:20:27 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-25 17:20:27 +0900
commit7ef5d0b10ae214f7c58aa77fb84547be1388f2d6 (patch)
tree1b488fed4106dde1f0248da402fdd40bf89de9c9 /room.h
parenta4a1129385731c3999a6d5986a24fc069938245c (diff)
downloadlibquotient-7ef5d0b10ae214f7c58aa77fb84547be1388f2d6.tar.gz
libquotient-7ef5d0b10ae214f7c58aa77fb84547be1388f2d6.zip
Now really switching to the new toolchain: C++14, GCC/Clang 5, Qt 5.6
Also a bit of code tightening with some C++14 (but not only) things.
Diffstat (limited to 'room.h')
-rw-r--r--room.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/room.h b/room.h
index 08327917..77d56377 100644
--- a/room.h
+++ b/room.h
@@ -18,8 +18,9 @@
#pragma once
-#include <memory>
-#include <deque>
+#include "jobs/syncjob.h"
+#include "events/roommessageevent.h"
+#include "joinstate.h"
#include <QtCore/QList>
#include <QtCore/QStringList>
@@ -27,9 +28,9 @@
#include <QtCore/QJsonObject>
#include <QtGui/QPixmap>
-#include "jobs/syncjob.h"
-#include "events/roommessageevent.h"
-#include "joinstate.h"
+#include <memory>
+#include <deque>
+#include <utility>
namespace QMatrixClient
{
@@ -58,8 +59,7 @@ namespace QMatrixClient
// Used for event redaction
RoomEventPtr replaceEvent(RoomEventPtr&& other)
{
- evt.swap(other);
- return move(other);
+ return std::exchange(evt, std::move(other));
}
private: