Fix shadowing in LoginPage.cpp

This commit is contained in:
Nicolas Werner 2021-01-06 11:01:41 +01:00
parent 03d817d277
commit 0c0c69074d

View file

@ -315,14 +315,14 @@ LoginPage::checkHomeserverVersion()
if (err || flows.flows.empty()) if (err || flows.flows.empty())
emit versionOkCb(LoginMethod::Password); emit versionOkCb(LoginMethod::Password);
LoginMethod loginMethod = LoginMethod::Password; LoginMethod loginMethod_ = LoginMethod::Password;
for (const auto &flow : flows.flows) { for (const auto &flow : flows.flows) {
if (flow.type == mtx::user_interactive::auth_types::sso) { if (flow.type == mtx::user_interactive::auth_types::sso) {
loginMethod = LoginMethod::SSO; loginMethod_ = LoginMethod::SSO;
break; break;
} }
} }
emit versionOk(loginMethod); emit versionOk(loginMethod_);
}); });
}); });
} }