diff options
author | Alessandro Portale <[email protected]> | 2024-11-20 12:19:53 +0100 |
---|---|---|
committer | Alessandro Portale <[email protected]> | 2024-11-20 12:19:42 +0000 |
commit | 116d5224e9409c4ed9b914a92b9d5ca9675fb357 (patch) | |
tree | 312e400b0381e73cbc91b20472c847b0ff278dd8 /src/plugins/nim | |
parent | 7c97a2b9f81adefc4fa03908e84865d77f5c4b5a (diff) |
Plugins M-V: Make static QRegularExpression instances static const
Change-Id: I291e61ac30786dfceda330d3dc73352da719c7d0
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/nim')
-rw-r--r-- | src/plugins/nim/project/nimtoolchain.cpp | 2 |
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; |