aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--events/event.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/events/event.h b/events/event.h
index 6a7f6ece..a5730f14 100644
--- a/events/event.h
+++ b/events/event.h
@@ -132,7 +132,7 @@ namespace QMatrixClient
for (auto objValue: objs)
{
const auto o = objValue.toObject();
- auto e { makeEvent<EventT>(o) };
+ auto&& e = makeEvent<EventT>(o);
if (!e)
e.reset(new EventT(EventType::Unknown, o));
this->emplace_back(std::move(e));