forked from qt-creator/qt-creator
Android: Make QRegularExpressions static const
Change-Id: I76653261c47a91dc5c3e3368e1961774917bc741 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -549,7 +549,7 @@ void AndroidSdkManagerPrivate::getPendingLicense(SdkCmdPromise &fi)
|
||||
} else if (assertionFound) {
|
||||
// The first assertion is to start reviewing licenses. Always accept.
|
||||
reviewingLicenses = true;
|
||||
QRegularExpression reg("(\\d+\\sof\\s)(?<steps>\\d+)");
|
||||
static const QRegularExpression reg(R"((\d+\sof\s)(?<steps>\d+))");
|
||||
QRegularExpressionMatch match = reg.match(stdOut);
|
||||
if (match.hasMatch())
|
||||
steps = match.captured("steps").toInt();
|
||||
|
||||
Reference in New Issue
Block a user