From 1eeba65ddb95e16258bf79a9611c146f19694e97 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 12 Mar 2024 15:57:45 +0400 Subject: [PATCH] Fix build on macOS. --- Telegram/SourceFiles/iv/iv_instance.cpp | 4 ++-- Telegram/SourceFiles/iv/iv_prepare.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/iv/iv_instance.cpp b/Telegram/SourceFiles/iv/iv_instance.cpp index 845eaf3941..359330365c 100644 --- a/Telegram/SourceFiles/iv/iv_instance.cpp +++ b/Telegram/SourceFiles/iv/iv_instance.cpp @@ -241,7 +241,7 @@ ShareBoxResult Shown::shareBox(ShareBoxDescriptor &&descriptor) { object_ptr, std::unique_ptr> &&layer, Ui::LayerOptions options, - anim::type animated) const { + anim::type animated) const override { using UniqueLayer = std::unique_ptr; using ObjectBox = object_ptr; const auto stack = _lookup(); @@ -255,7 +255,7 @@ ShareBoxResult Shown::shareBox(ShareBoxDescriptor &&descriptor) { stack->hideAll(animated); } } - not_null toastParent() const { + not_null toastParent() const override { return _parent.data(); } bool valid() const override { diff --git a/Telegram/SourceFiles/iv/iv_prepare.cpp b/Telegram/SourceFiles/iv/iv_prepare.cpp index be089e105a..45609701e2 100644 --- a/Telegram/SourceFiles/iv/iv_prepare.cpp +++ b/Telegram/SourceFiles/iv/iv_prepare.cpp @@ -159,7 +159,7 @@ private: [[nodiscard]] QSize computeSlideshowDimensions( const QVector &items); - const Options _options; + //const Options _options; const QByteArray _fileOriginPostfix; base::flat_set _resources; @@ -203,8 +203,8 @@ private: } Parser::Parser(const Source &source, const Options &options) -: _options(options) -, _fileOriginPostfix('/' + Number(source.pageId)) { +: /*_options(options) +, */_fileOriginPostfix('/' + Number(source.pageId)) { process(source); _result.name = source.name; _result.rtl = source.page.data().is_rtl();