diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2025-04-11 14:30:03 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2025-04-15 14:27:14 +0200 |
| commit | b417a509f5636161e9fb6beed19f32f7a40dac7c (patch) | |
| tree | 113c7e251260e83748b6d0e1850a99da2ff5016c /tests/auto/quickcontrols/snippets/tst_snippets.cpp | |
| parent | 53bd0bb6b06c2d4b4570d22f41dfe3951db785ba (diff) | |
QtQml: Avoid maybe-uninitialized warnings in QJSPrimitiveValue
The compiler can't see that we only access m_string if it has
previously been initialized. However, we can just zero the storage on
construction.
Pick-to: 6.9 6.8 6.5
Fixes: QTBUG-135367
Change-Id: I1b04d81e18063650501bdc24474c9672e999189d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/quickcontrols/snippets/tst_snippets.cpp')
0 files changed, 0 insertions, 0 deletions
