diff --git a/td/telegram/files/FileLocation.h b/td/telegram/files/FileLocation.h index 38a0a6730..c520b4253 100644 --- a/td/telegram/files/FileLocation.h +++ b/td/telegram/files/FileLocation.h @@ -923,12 +923,14 @@ struct PartialLocalFileLocationPtr { } PartialLocalFileLocationPtr &operator=(const PartialLocalFileLocationPtr &other) { *location_ = *other.location_; + return *this; } PartialLocalFileLocationPtr(PartialLocalFileLocationPtr &&other) : location_(make_unique(std::move(*other.location_))) { } PartialLocalFileLocationPtr &operator=(PartialLocalFileLocationPtr &&other) { *location_ = std::move(*other.location_); + return *this; } ~PartialLocalFileLocationPtr() = default;