diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-03-17 12:07:44 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-03-29 06:18:49 +0100 |
commit | 32692667a625f31aa02e0303f2139c780ae42694 (patch) | |
tree | bab74a97f673fd2caee7d1d0b68fac4583fcfb11 /qmake/generators/metamakefile.cpp | |
parent | 9578a3f72fd67011263eac9d306750a2dbef01d1 (diff) |
Apply Q_CONSTINIT across the codebase
Still not complete. Just grepping for static and thread_local.
Task-number: QTBUG-100486
Change-Id: I90ca14e8db3a95590ecde5f89924cf6fcc9755a3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'qmake/generators/metamakefile.cpp')
-rw-r--r-- | qmake/generators/metamakefile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/generators/metamakefile.cpp b/qmake/generators/metamakefile.cpp index 8ba941c213..964b4e900e 100644 --- a/qmake/generators/metamakefile.cpp +++ b/qmake/generators/metamakefile.cpp @@ -326,7 +326,7 @@ SubdirsMetaMakefileGenerator::init() if(!thispwd.endsWith('/')) thispwd += '/'; const ProStringList &subdirs = project->values("SUBDIRS"); - static int recurseDepth = -1; + Q_CONSTINIT static int recurseDepth = -1; ++recurseDepth; for(int i = 0; i < subdirs.size(); ++i) { Subdir *sub = new Subdir; |