diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2024-04-10 08:34:27 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-04-11 15:47:21 +0200 |
commit | e068324912e9320983d370e8fa2209f7ea941400 (patch) | |
tree | 0c75fe3490f34f77ce651df48959bfe6d5788070 /tools | |
parent | 0ead48409ec7b376646667b1d63a54de00060a83 (diff) |
Fix coverity warnings
* Make things const where we can
* Avoid copies where we can
* Clarify some types
* Remove dead code
Coverity-Id: 454277
Coverity-Id: 454278
Coverity-Id: 454287
Coverity-Id: 454288
Coverity-Id: 454291
Coverity-Id: 454292
Coverity-Id: 454294
Coverity-Id: 454295
Change-Id: I56150aea78ea2b188083f99bf83816b121ef867a
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmltc/qmltccompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qmltc/qmltccompiler.cpp b/tools/qmltc/qmltccompiler.cpp index dc473b45e3..75bd580e07 100644 --- a/tools/qmltc/qmltccompiler.cpp +++ b/tools/qmltc/qmltccompiler.cpp @@ -425,7 +425,7 @@ void QmltcCompiler::compileType( current.handleOnCompleted.parameterList = { creator }; if (documentRoot || inlineComponent) { - QmltcVariable initializer( + const QmltcVariable initializer( u"[[maybe_unused]] qxp::function_ref<void(%1&)>"_s.arg(current.propertyInitializer.name), u"initializer"_s, u"[](%1&){}"_s.arg(current.propertyInitializer.name)); |