From 3fe403117a2928c02b3d0d8855568d8863b45454 Mon Sep 17 00:00:00 2001 From: Anton Samokhvalov Date: Sun, 2 Oct 2022 03:23:45 +0300 Subject: [PATCH] fix clang15/libc++15 build --- Telegram/SourceFiles/passport/passport_panel_edit_scans.cpp | 6 ++++++ Telegram/SourceFiles/passport/passport_panel_edit_scans.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/passport/passport_panel_edit_scans.cpp b/Telegram/SourceFiles/passport/passport_panel_edit_scans.cpp index 46f1ab3ca..35d5bd8ea 100644 --- a/Telegram/SourceFiles/passport/passport_panel_edit_scans.cpp +++ b/Telegram/SourceFiles/passport/passport_panel_edit_scans.cpp @@ -167,6 +167,12 @@ EditScans::List::List( , errorMissing(data.errorMissing) { } +EditScans::List::List( + not_null controller) +: List(controller, std::nullopt) +{ +} + EditScans::List::List( not_null controller, std::optional &&data) diff --git a/Telegram/SourceFiles/passport/passport_panel_edit_scans.h b/Telegram/SourceFiles/passport/passport_panel_edit_scans.h index 9e52281cc..2d648391b 100644 --- a/Telegram/SourceFiles/passport/passport_panel_edit_scans.h +++ b/Telegram/SourceFiles/passport/passport_panel_edit_scans.h @@ -72,9 +72,10 @@ private: struct SpecialScan; struct List { List(not_null controller, ScanListData &&data); + List(not_null controller); List( not_null controller, - std::optional &&data = std::nullopt); + std::optional &&data); bool uploadedSomeMore() const; bool uploadMoreRequired() const;