Fix clang warnings.

This commit is contained in:
levlam 2024-07-19 15:07:05 +03:00
parent 0f1767b3f0
commit 3a7bdcbe5e
2 changed files with 3 additions and 3 deletions

View File

@ -230,7 +230,7 @@ class GetStarsTransactionsQuery final : public Td::ResultHandler {
for (auto &media : extended_media) {
media.append_file_ids(td_, file_ids);
}
auto extended_media_objects = transform(std::move(extended_media), [td = td_, dialog_id](auto &&media) {
auto extended_media_objects = transform(std::move(extended_media), [td = td_](auto &&media) {
return media.get_message_extended_media_object(td);
});
td_->dialog_manager_->force_create_dialog(dialog_id, "starsTransactionPeer", true);

View File

@ -4970,7 +4970,7 @@ class CliClient final : public Actor {
} else if (op == "spmp") {
ChatId chat_id;
get_args(args, chat_id, args);
auto paid_media = transform(full_split(args), [this](const string &photo) {
auto paid_media = transform(full_split(args), [](const string &photo) {
return td_api::make_object<td_api::inputPaidMedia>(td_api::make_object<td_api::inputPaidMediaTypePhoto>(),
as_input_file(photo), nullptr, vector<int32>(), 0, 0);
});
@ -4979,7 +4979,7 @@ class CliClient final : public Actor {
} else if (op == "spmv") {
ChatId chat_id;
get_args(args, chat_id, args);
auto paid_media = transform(full_split(args), [this](const string &video) {
auto paid_media = transform(full_split(args), [](const string &video) {
return td_api::make_object<td_api::inputPaidMedia>(
td_api::make_object<td_api::inputPaidMediaTypeVideo>(10, true), as_input_file(video), nullptr,
vector<int32>(), 0, 0);