aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonbuildsystem.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2024-11-20 12:19:53 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2024-11-20 12:19:42 +0000
commit116d5224e9409c4ed9b914a92b9d5ca9675fb357 (patch)
tree312e400b0381e73cbc91b20472c847b0ff278dd8 /src/plugins/python/pythonbuildsystem.cpp
parent7c97a2b9f81adefc4fa03908e84865d77f5c4b5a (diff)
Plugins M-V: Make static QRegularExpression instances static const
Change-Id: I291e61ac30786dfceda330d3dc73352da719c7d0 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/python/pythonbuildsystem.cpp')
-rw-r--r--src/plugins/python/pythonbuildsystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonbuildsystem.cpp b/src/plugins/python/pythonbuildsystem.cpp
index 619e59ad527..f091aea2bc7 100644
--- a/src/plugins/python/pythonbuildsystem.cpp
+++ b/src/plugins/python/pythonbuildsystem.cpp
@@ -370,7 +370,7 @@ void PythonBuildSystem::parse()
*/
static void expandEnvironmentVariables(const Environment &env, QString &string)
{
- const QRegularExpression candidate("\\$\\$\\((.+)\\)");
+ static const QRegularExpression candidate("\\$\\$\\((.+)\\)");
QRegularExpressionMatch match;
int index = string.indexOf(candidate, 0, &match);