Fix MSVC 15.3 warnings.
GitOrigin-RevId: 798de56bef2ea061d996e5bf2feec75f4800c32e
This commit is contained in:
parent
ca550f5202
commit
c03b2396fa
@ -320,7 +320,7 @@ class BackgroundManager::BackgroundLogEvent {
|
||||
|
||||
void BackgroundManager::start_up() {
|
||||
for (int i = 0; i < 2; i++) {
|
||||
bool for_dark_theme = static_cast<bool>(i);
|
||||
bool for_dark_theme = i != 0;
|
||||
auto logevent_string = G()->td_db()->get_binlog_pmc()->get(get_background_database_key(for_dark_theme));
|
||||
if (!logevent_string.empty()) {
|
||||
BackgroundLogEvent logevent;
|
||||
|
@ -48,7 +48,7 @@ class RestrictedRights {
|
||||
}
|
||||
|
||||
bool can_invite_users() const {
|
||||
return (flags_ & CAN_INVITE_USERS);
|
||||
return (flags_ & CAN_INVITE_USERS) != 0;
|
||||
}
|
||||
|
||||
bool can_pin_messages() const {
|
||||
|
@ -2464,7 +2464,7 @@ class CliClient final : public Actor {
|
||||
auto chat = as_chat_id(chat_id);
|
||||
send_request(td_api::make_object<td_api::forwardMessages>(chat, as_chat_id(from_chat_id),
|
||||
as_message_ids(message_ids), false, false, op[2] == 'g',
|
||||
op[0] == 'c', static_cast<bool>(Random::fast(0, 1))));
|
||||
op[0] == 'c', Random::fast(0, 1) == 1));
|
||||
} else if (op == "resend") {
|
||||
string chat_id;
|
||||
string message_ids;
|
||||
|
Reference in New Issue
Block a user