From ce8d68fc8c46f0231fb6aecfb42a49b4254809d0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 8 Mar 2017 13:46:04 +0300 Subject: [PATCH] Alpha 1.0.19: Add MSVC++ bug workaround. --- Telegram/SourceFiles/core/observer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/observer.h b/Telegram/SourceFiles/core/observer.h index fc4eb788d..bbde082a2 100644 --- a/Telegram/SourceFiles/core/observer.h +++ b/Telegram/SourceFiles/core/observer.h @@ -150,7 +150,8 @@ public: } void notify(const EventType &event, bool sync = false) { if (this->_data) { - this->_data->notify(EventType(event), sync); + auto event_copy = event; + this->_data->notify(std::move(event_copy), sync); } }