Skip to content

Commit

Permalink
Remove unneeded bool initializations in parsers.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Apr 24, 2022
1 parent 3bd99f9 commit 61942cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions td/telegram/DialogFilter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ void DialogFilter::store(StorerT &storer) const {
template <class ParserT>
void DialogFilter::parse(ParserT &parser) {
using td::parse;
bool has_pinned_dialog_ids = !pinned_dialog_ids.empty();
bool has_included_dialog_ids = !included_dialog_ids.empty();
bool has_excluded_dialog_ids = !excluded_dialog_ids.empty();
bool has_pinned_dialog_ids;
bool has_included_dialog_ids;
bool has_excluded_dialog_ids;
BEGIN_PARSE_FLAGS();
PARSE_FLAG(exclude_muted);
PARSE_FLAG(exclude_read);
Expand Down
2 changes: 1 addition & 1 deletion td/telegram/SendCodeHelper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ void SendCodeHelper::store(StorerT &storer) const {

template <class ParserT>
void SendCodeHelper::parse(ParserT &parser) {
bool legacy_is_registered = false;
using td::parse;
parse(phone_number_, parser);
bool legacy_is_registered;
parse(legacy_is_registered, parser);
parse(phone_code_hash_, parser);
parse(sent_code_info_, parser);
Expand Down

0 comments on commit 61942cf

Please sign in to comment.