mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-05 03:14:28 +00:00
Use base::weak_qptr / base::make_weak.
This commit is contained in:
@@ -404,7 +404,9 @@ auto ApiWrap::fileRequest(const Data::FileLocation &location, int64 offset) {
|
||||
}).toDC(MTP::ShiftDcId(location.dcId, MTP::kExportMediaDcShift)));
|
||||
}
|
||||
|
||||
ApiWrap::ApiWrap(QPointer<MTP::Instance> weak, Fn<void(FnMut<void()>)> runner)
|
||||
ApiWrap::ApiWrap(
|
||||
base::weak_qptr<MTP::Instance> weak,
|
||||
Fn<void(FnMut<void()>)> runner)
|
||||
: _mtp(weak, std::move(runner))
|
||||
, _fileCache(std::make_unique<LoadedFileCache>(kLocationCacheSize)) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user