Skip to content

Commit

Permalink
Fix GCC 4.9 compilation errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Feb 22, 2024
1 parent 0862f03 commit fe62015
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions td/telegram/RepliedMessageInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ RepliedMessageInfo::RepliedMessageInfo(Td *td, const MessageInputReplyTo &input_
truncate_formatted_text(
quote_, static_cast<size_t>(td->option_manager_->get_option_integer("message_reply_quote_length_max")));
}
*content_text = {};
*content_text = FormattedText();
}
auto origin_message_full_id = origin_.get_message_full_id();
if (origin_message_full_id.get_message_id().is_valid()) {
Expand Down Expand Up @@ -357,7 +357,8 @@ td_api::object_ptr<td_api::messageReplyToMessage> RepliedMessageInfo::get_messag
MessageInputReplyTo RepliedMessageInfo::get_input_reply_to() const {
CHECK(!is_external());
if (message_id_.is_valid()) {
return MessageInputReplyTo{message_id_, dialog_id_, FormattedText{quote_}, quote_position_};
FormattedText quote = quote_;
return MessageInputReplyTo(message_id_, dialog_id_, std::move(quote), quote_position_);
}
return {};
}
Expand Down
4 changes: 2 additions & 2 deletions tdutils/td/utils/JsonBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ class JsonObject {

JsonObject(const JsonObject &) = delete;
JsonObject &operator=(const JsonObject &) = delete;
JsonObject(JsonObject &&) noexcept = default;
JsonObject &operator=(JsonObject &&) noexcept = default;
JsonObject(JsonObject &&) = default;
JsonObject &operator=(JsonObject &&) = default;
~JsonObject() = default;

size_t field_count() const {
Expand Down

0 comments on commit fe62015

Please sign in to comment.