From db8042f43b9f85ed0e508ef5f9eabfed198baf3a Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Fri, 25 Dec 2020 00:56:06 +0300 Subject: [PATCH] Fix copy elision prevention --- Telegram/SourceFiles/settings/settings_codes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/settings/settings_codes.cpp b/Telegram/SourceFiles/settings/settings_codes.cpp index 3093866b8..d31b828a3 100644 --- a/Telegram/SourceFiles/settings/settings_codes.cpp +++ b/Telegram/SourceFiles/settings/settings_codes.cpp @@ -202,7 +202,7 @@ auto GenerateCodes() { Ui::show( Box( &window->session(), - std::move(Fn())), + Fn()), Ui::LayerOption::KeepOther); });