Fix some GCC 4.9 compilation errors.

This commit is contained in:
levlam 2024-05-08 10:30:02 +03:00
parent 0535cba37c
commit dbd397cb0e
2 changed files with 6 additions and 2 deletions

View File

@ -107,7 +107,7 @@ telegram_api::object_ptr<telegram_api::InputReplyTo> 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

View File

@ -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 {