Skip to content

Commit

Permalink
Fix warnings.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 0ba63a483c0c765e5d4889275d0ac4598be12fd1
  • Loading branch information
levlam committed Aug 24, 2018
1 parent 3c34179 commit d76734e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions td/telegram/LanguagePackManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ void LanguagePackManager::on_get_language_pack_strings(
} else {
it->second = std::move(str->value_);
}
key_count_delta -= language->pluralized_strings_.erase(str->key_);
key_count_delta -= static_cast<int32>(language->pluralized_strings_.erase(str->key_));
language->deleted_strings_.erase(str->key_);
if (is_diff) {
strings.push_back(get_language_pack_string_object(*it));
Expand All @@ -897,7 +897,7 @@ void LanguagePackManager::on_get_language_pack_strings(
} else {
it->second = std::move(value);
}
key_count_delta -= language->ordinary_strings_.erase(str->key_);
key_count_delta -= static_cast<int32>(language->ordinary_strings_.erase(str->key_));
language->deleted_strings_.erase(str->key_);
if (is_diff) {
strings.push_back(get_language_pack_string_object(*it));
Expand All @@ -910,8 +910,8 @@ void LanguagePackManager::on_get_language_pack_strings(
}
case telegram_api::langPackStringDeleted::ID: {
auto str = static_cast<const telegram_api::langPackStringDeleted *>(result.get());
key_count_delta -= language->ordinary_strings_.erase(str->key_);
key_count_delta -= language->pluralized_strings_.erase(str->key_);
key_count_delta -= static_cast<int32>(language->ordinary_strings_.erase(str->key_));
key_count_delta -= static_cast<int32>(language->pluralized_strings_.erase(str->key_));
language->deleted_strings_.insert(std::move(str->key_));
if (is_diff) {
strings.push_back(get_language_pack_string_object(str->key_));
Expand Down

0 comments on commit d76734e

Please sign in to comment.