diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-01-29 18:03:25 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-01-29 18:03:25 +0100 |
commit | 909c11d2bb9cddde3d8dc8e5ca2404b11fdd801b (patch) | |
tree | b0c47d03a2b6ea6758531b73daf1afe135811e67 /src/LoginPage.cpp | |
parent | Remove unnecessary qml engine shutdown workaround (diff) | |
download | nheko-909c11d2bb9cddde3d8dc8e5ca2404b11fdd801b.tar.xz |
Get rid of some shadowing
Diffstat (limited to 'src/LoginPage.cpp')
-rw-r--r-- | src/LoginPage.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/LoginPage.cpp b/src/LoginPage.cpp index cfc600ae..6bed446e 100644 --- a/src/LoginPage.cpp +++ b/src/LoginPage.cpp @@ -171,16 +171,16 @@ LoginPage::checkHomeserverVersion() if (err || flows.flows.empty()) emit versionOkCb(true, false); - bool ssoSupported_ = false; - bool passwordSupported_ = false; + bool ssoSupported = false; + bool passwordSupported = false; for (const auto &flow : flows.flows) { if (flow.type == mtx::user_interactive::auth_types::sso) { - ssoSupported_ = true; + ssoSupported = true; } else if (flow.type == mtx::user_interactive::auth_types::password) { - passwordSupported_ = true; + passwordSupported = true; } } - emit versionOkCb(passwordSupported_, ssoSupported_); + emit versionOkCb(passwordSupported, ssoSupported); }); }); } |