diff options
author | Matthias Rauter <[email protected]> | 2024-09-13 10:25:01 +0200 |
---|---|---|
committer | Matthias Rauter <[email protected]> | 2025-06-02 07:36:29 +0000 |
commit | 74fb2d7f8d034410ab2a2a5007b14235a1c4da72 (patch) | |
tree | 5b8e9b117cafa0faf95a3b5e8210e05a1e5df4e6 /src/svg/qsvgstructure_p.h | |
parent | 9ad9fa329a6fe20f9fde2cf66fa9ebd9bd4e4460 (diff) |
This patch tries to bring some suggestions from the new QString overview
documentation page to QtSvg.
Focus is on using views instead of owning strings and on the correct
encoding.
Usage of find and replace string functions were adapted to follow a
common style: using slice() instead of mid() where useful (carefully,
because mid checks the length and slice does not). Further reducing the
number of parameters that would be filled by default values (e.g. size()
- pos) for mid. startsWith() replaces mid(0, pos) == "...".
Further the patch contains some fixes to questionable usage of regular
expressions and iterations suggested by reviewers.
Pick-to: 6.10
Task-number: QTBUG-134065
Change-Id: I7c20da6eafb384c89322cece67b0098ad8cd01e0
Reviewed-by: Hatem ElKharashy <[email protected]>
Diffstat (limited to 'src/svg/qsvgstructure_p.h')
0 files changed, 0 insertions, 0 deletions