Fix build on macOS.

This commit is contained in:
John Preston 2024-03-12 15:57:45 +04:00
parent 1252accef7
commit 1eeba65ddb
2 changed files with 5 additions and 5 deletions

View File

@ -241,7 +241,7 @@ ShareBoxResult Shown::shareBox(ShareBoxDescriptor &&descriptor) {
object_ptr<Ui::BoxContent>,
std::unique_ptr<Ui::LayerWidget>> &&layer,
Ui::LayerOptions options,
anim::type animated) const {
anim::type animated) const override {
using UniqueLayer = std::unique_ptr<Ui::LayerWidget>;
using ObjectBox = object_ptr<Ui::BoxContent>;
const auto stack = _lookup();
@ -255,7 +255,7 @@ ShareBoxResult Shown::shareBox(ShareBoxDescriptor &&descriptor) {
stack->hideAll(animated);
}
}
not_null<QWidget*> toastParent() const {
not_null<QWidget*> toastParent() const override {
return _parent.data();
}
bool valid() const override {

View File

@ -159,7 +159,7 @@ private:
[[nodiscard]] QSize computeSlideshowDimensions(
const QVector<MTPPageBlock> &items);
const Options _options;
//const Options _options;
const QByteArray _fileOriginPostfix;
base::flat_set<QByteArray> _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();