aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nim
diff options
context:
space:
mode:
authorAlessandro Portale <[email protected]>2024-11-20 12:19:53 +0100
committerAlessandro Portale <[email protected]>2024-11-20 12:19:42 +0000
commit116d5224e9409c4ed9b914a92b9d5ca9675fb357 (patch)
tree312e400b0381e73cbc91b20472c847b0ff278dd8 /src/plugins/nim
parent7c97a2b9f81adefc4fa03908e84865d77f5c4b5a (diff)
Plugins M-V: Make static QRegularExpression instances static const
Diffstat (limited to 'src/plugins/nim')
-rw-r--r--src/plugins/nim/project/nimtoolchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nim/project/nimtoolchain.cpp b/src/plugins/nim/project/nimtoolchain.cpp
index d333e618537..e083ae5b172 100644
--- a/src/plugins/nim/project/nimtoolchain.cpp
+++ b/src/plugins/nim/project/nimtoolchain.cpp
@@ -107,7 +107,7 @@ bool NimToolchain::parseVersion(const FilePath &path, std::tuple<int, int, int>
const QString version = process.readAllStandardOutput().section('\n', 0, 0);
if (version.isEmpty())
return false;
- const QRegularExpression regex("(\\d+)\\.(\\d+)\\.(\\d+)");
+ static const QRegularExpression regex("(\\d+)\\.(\\d+)\\.(\\d+)");
const QRegularExpressionMatch match = regex.match(version);
if (!match.hasMatch())
return false;