diff options
| author | levlam <levlam@telegram.org> | 2023-05-22 16:00:14 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2023-05-22 16:00:14 +0300 |
| commit | 89c47026e0bb5bda2b6be4045f0b0531c4e5fce3 (patch) | |
| tree | 639ff8f36f2b0f01e614e28b431ff0df1fc242cd /td/telegram/Photo.cpp | |
| parent | 9756d174eea34b014049490795c6ddff45715465 (diff) | |
Fix compilation error with old compilers.
Diffstat (limited to 'td/telegram/Photo.cpp')
| -rw-r--r-- | td/telegram/Photo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/td/telegram/Photo.cpp b/td/telegram/Photo.cpp index ad5597530..37daed2e6 100644 --- a/td/telegram/Photo.cpp +++ b/td/telegram/Photo.cpp @@ -387,7 +387,7 @@ Result<Photo> create_photo(FileManager *file_manager, FileId file_id, PhotoSize photo.photos.push_back(std::move(input_photo_size)); photo.has_stickers = !sticker_file_ids.empty(); photo.sticker_file_ids = std::move(sticker_file_ids); - return photo; + return std::move(photo); } tl_object_ptr<td_api::photo> get_photo_object(FileManager *file_manager, const Photo &photo) { |
