AFAIU, the resize(1) was merely there to have result.size() return 1 in the initial iteration of the do loop. Since resize(1) is always followed by another unconditional resize() in the do-while loop, remove it and use "1 + readBytes" instead of result.size() in the follow-up resize() call inside the do loop. Saves one resize() call and the corresponding executable size and runtime overhead. Pick-to: 6.7 6.5 Change-Id: I507acab2a6b7d55217cd454ecbbaf1df0e1d18e6 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit d9579f0043a04e08b3954eb6bb58637fc25fba9a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%