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:
Alessandro Portale
2023-03-22 16:13:40 +01:00
parent 7fe4fde886
commit 8432760f9a
5 changed files with 10 additions and 7 deletions

View File

@@ -620,7 +620,8 @@ void AndroidDeployQtStep::stdError(const QString &line)
emit addOutput(line, BuildStep::OutputFormat::Stderr, BuildStep::DontAppendNewline);
QString newOutput = line;
newOutput.remove(QRegularExpression("^(\\n)+"));
static const QRegularExpression re("^(\\n)+");
newOutput.remove(re);
if (newOutput.isEmpty())
return;