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; }