From 97a4f7399986ebb33f6b002d679ae04f6876d603 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 2 Jan 2019 21:52:44 +0300 Subject: [PATCH] Fix PartialLocalFileLocationPtr. GitOrigin-RevId: c72b2da96bfc01d3c40693863830205145229aa3 --- td/telegram/files/FileLocation.h | 2 ++ 1 file changed, 2 insertions(+) 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;