diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2025-08-18 13:37:40 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2025-08-19 07:22:36 +0200 |
| commit | e1ecbff3d36b666488f6f2eec299549f31ee078d (patch) | |
| tree | 8290c2c9f48160a14648aa934c80de02ec1ccbc3 /src/widgets/doc/snippets/mainwindowsnippet.cpp | |
| parent | 8dfec028f9a269836f50d0a4a3ac27b1b833cd66 (diff) | |
QString: make qt_section_chunk a plain aggregate
The type doesn't need to have constructors, certainly not a default
constructor that doesn't initialize the 'length' member (so that even
value-initialization leaves it uninit'ed).
Since we don't depend on C++20, yet, this requires the use of {}
instead of () for initialization.
As a drive-by, fix the errornous spaces inside QStringView{ *this }.
Lack of initialization pointed out by Coverity.
Amends d807a16e7f9555e02991fc86ac5085ebe0101ef3.
Coverity-Id: 54563
Pick-to: 6.10 6.9 6.8
Change-Id: I8111ab253934a74e5f466a0457a9f7f3fb1f2721
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets/doc/snippets/mainwindowsnippet.cpp')
0 files changed, 0 insertions, 0 deletions
