From 99575d2406ce9676454b72e11500f9eb891aabaf Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 17 Dec 2023 13:46:15 -0500 Subject: [PATCH] Remove shadowed variable --- launcher/src/squareenixlogin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/launcher/src/squareenixlogin.cpp b/launcher/src/squareenixlogin.cpp index 132f20f..a26a2c5 100644 --- a/launcher/src/squareenixlogin.cpp +++ b/launcher/src/squareenixlogin.cpp @@ -290,11 +290,11 @@ QCoro::Task SquareEnixLogin::loginOAuth() co_return true; } else { - const QRegularExpression re(QStringLiteral(R"lit(window.external.user\("login=auth,ng,err,(?.*)\);)lit")); - const QRegularExpressionMatch match = re.match(str); + const QRegularExpression errorRe(QStringLiteral(R"lit(window.external.user\("login=auth,ng,err,(?.*)\);)lit")); + const QRegularExpressionMatch errorMatch = errorRe.match(str); // 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; }