summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qsharedpointer.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-02-19 16:58:53 +0100
committerMarc Mutz <marc.mutz@qt.io>2025-02-28 10:49:52 +0000
commit7c21630ce625817f1dc8e7182023b3fc6d36ac37 (patch)
tree0d1c666d0d329f2b408dc3861ce5b2ab568a7fad /src/corelib/tools/qsharedpointer.cpp
parent9c6c6d7d388bee01ea4e5ea102d3b0ed359c3f00 (diff)
QByteArray::replace(): use std::string instead of QVLA<char>
QVLA preallocates space for 256 entries, and while that should be enough for most uses, it may be too much in the way of stack usage. Instead of using a QVLA with a non-standard preallocation, use the more compact std::string benefitting from its SSO. Pick-to: 6.9 6.8 6.5 Change-Id: Ia22543fb287a1976f316f7a4d27b23a22f511463 Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src/corelib/tools/qsharedpointer.cpp')
0 files changed, 0 insertions, 0 deletions