Pass parameter by value.

This commit is contained in:
levlam 2021-12-15 20:30:25 +03:00
parent 3f2f45a802
commit 93b3f64121
2 changed files with 2 additions and 2 deletions

View File

@ -690,7 +690,7 @@ void AuthManager::on_log_out_result(NetQueryPtr &result) {
on_query_ok(); on_query_ok();
} }
} }
void AuthManager::on_authorization_lost(const string &source) { void AuthManager::on_authorization_lost(string source) {
LOG(WARNING) << "Lost authorization because of " << source; LOG(WARNING) << "Lost authorization because of " << source;
destroy_auth_keys(); destroy_auth_keys();
} }

View File

@ -49,7 +49,7 @@ class AuthManager final : public NetActor {
void on_update_login_token(); void on_update_login_token();
void on_authorization_lost(const string &source); void on_authorization_lost(string source);
void on_closing(bool destroy_flag); void on_closing(bool destroy_flag);
// can return nullptr if state isn't initialized yet // can return nullptr if state isn't initialized yet