Skip to content
Snippets Groups Projects
Commit 19715f6d authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix warning for pessimistic move

parent 8c6e9ba8
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ unpickle(const std::string &pickled, const std::string &key)
if (ret == -1)
throw olm_exception("unpickle", object.get());
return std::move(object);
return object;
}
using OlmSessionPtr = std::unique_ptr<OlmSession, OlmDeleter>;
......
......@@ -528,7 +528,7 @@ mtx::http::Client::create_session(HeadersCallback<Response> callback)
boost::signals2::signal<void()>::slot_type(&Session::terminate, session.get())
.track_foreign(session));
return std::move(session);
return session;
}
template<class Payload, mtx::events::EventType Event>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment