diff --git a/td/telegram/MessageInputReplyTo.cpp b/td/telegram/MessageInputReplyTo.cpp index 8fbc0111a..809fb191b 100644 --- a/td/telegram/MessageInputReplyTo.cpp +++ b/td/telegram/MessageInputReplyTo.cpp @@ -107,7 +107,7 @@ telegram_api::object_ptr MessageInputReplyTo::get_in flags, reply_to_message_id.get_server_message_id().get(), top_thread_message_id.get_server_message_id().get(), std::move(input_peer), string(), Auto(), 0); quote_.update_input_reply_to_message(td, result.get()); - return result; + return std::move(result); } // only for draft messages diff --git a/td/telegram/net/DcOptionsSet.h b/td/telegram/net/DcOptionsSet.h index e29bf84e3..d1fe2a7b1 100644 --- a/td/telegram/net/DcOptionsSet.h +++ b/td/telegram/net/DcOptionsSet.h @@ -88,7 +88,11 @@ class DcOptionsSet { struct DcOptionId { size_t pos = 0; - auto as_tie() const { + + explicit DcOptionId(size_t pos) : pos(pos) { + } + + size_t as_tie() const { return pos; } bool operator==(const DcOptionId &other) const {