Remove unneeded bool initializations in parsers.
This commit is contained in:
parent
3bd99f98b8
commit
61942cf3ea
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user