diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2024-07-22 11:06:27 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2024-08-03 10:30:05 +0000 |
| commit | a15ff49be73228bbbc72989736d32059322c414f (patch) | |
| tree | b0fbefbd1d879ba45438dadce0f0ef25f7dc51a1 /src/widgets/doc/snippets | |
| parent | b2b0a5df25c32c3c36c731e2f5ca092edc2c8385 (diff) | |
QTest: simplify qPrintDataTags() string building
Use higher-level API (QByteArray::chopped()/operator+()) instead
of new[] and qsnprintf().
methodSignature() already heavily depends on QByteArray concatenation,
therefore trying to avoid using Qt code in QtTest is pointless, at
least here.
Drive-by indent lines so a follow-up port to std::fsprintf() will not
have to re-indent these lines again.
Amends b68bae1132b5dc5c8f55435c72cd48e24aa52ec9.
Pick-to: 6.8 6.7 6.5
Change-Id: I94ec440d7e6d09196cf87cd3dbbfd765e0df69d0
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets')
0 files changed, 0 insertions, 0 deletions
