1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 20:27:45 +00:00

Remove shadowed variable

This commit is contained in:
Joshua Goins 2023-12-17 13:46:15 -05:00
parent 68d8d9f042
commit 99575d2406

View file

@ -290,11 +290,11 @@ QCoro::Task<bool> SquareEnixLogin::loginOAuth()
co_return true; co_return true;
} else { } else {
const QRegularExpression re(QStringLiteral(R"lit(window.external.user\("login=auth,ng,err,(?<launchParams>.*)\);)lit")); const QRegularExpression errorRe(QStringLiteral(R"lit(window.external.user\("login=auth,ng,err,(?<launchParams>.*)\);)lit"));
const QRegularExpressionMatch match = re.match(str); const QRegularExpressionMatch errorMatch = errorRe.match(str);
// there's a stray quote at the end of the error string, so let's remove that // there's a stray quote at the end of the error string, so let's remove that
Q_EMIT m_launcher.loginError(match.captured(1).chopped(1)); Q_EMIT m_launcher.loginError(errorMatch.captured(1).chopped(1));
co_return false; co_return false;
} }