diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2022-03-07 17:05:24 +0100 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-03-18 01:22:54 +0100 |
| commit | 0cee66048d6904b1cae7fb11d30efe33aaefc324 (patch) | |
| tree | ee43a1e32f486e1c638879af9d497a8698589dc4 /src/tools/uic/cpp/cppwriteinitialization.cpp | |
| parent | 73e7fc2d8e6084af71ee31d88621305e0dc67b1d (diff) | |
Tidy up QByteArray::toPercentEncoding()
After inlining the local static void to which it used to delegate most
of the work, the main loop can access *this and we have no need for
yet another copy of it or the variables to iterate it. We can also
access the result array directly, rather than via a (poorly-named)
pointer.
It turns out that wrapping QBA in QBAV each time we call a lambda on
it costs enough to cause a 50% slowdown, so change the lambda to now
take the const refs we have. (Constructing the views only once is as
good, for reference.)
Change-Id: I81c5996d91415d8a933de714177a89462555ff03
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions
