diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-05-17 00:15:12 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-05-17 00:15:12 +0300 |
commit | 3d26c5f14d2283ded3bd46764604bbdcc66067c9 (patch) | |
tree | 120d33456122b9354056174ba31adf8251234c57 /include/MatrixClient.h | |
parent | Hide the edit menu when the user doesn't have enough power (diff) | |
download | nheko-3d26c5f14d2283ded3bd46764604bbdcc66067c9.tar.xz |
Add missing header
[ci skip]
Diffstat (limited to 'include/MatrixClient.h')
-rw-r--r-- | include/MatrixClient.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/MatrixClient.h b/include/MatrixClient.h index 9b0c113d..eae57281 100644 --- a/include/MatrixClient.h +++ b/include/MatrixClient.h @@ -23,6 +23,7 @@ #include <QNetworkReply> #include <QNetworkRequest> #include <QUrl> +#include <memory> #include <mtx.hpp> #include <mtx/errors.hpp> @@ -253,7 +254,7 @@ MatrixClient::sendStateEvent(const EventBody &body, const QString &roomId, const setupAuth(request); auto proxy = std::shared_ptr<StateEventProxy>(new StateEventProxy, - [](auto proxy) { proxy->deleteLater(); }); + [](StateEventProxy *p) { p->deleteLater(); }); auto serializedBody = nlohmann::json(body).dump(); auto reply = put(request, QByteArray(serializedBody.data(), serializedBody.size())); |