qt5base-lts/tests/auto
Marc Mutz 5ff7163796 qputenv: port to QByteArrayView
The vast majority of in-tree users pass simple and short C string
literals as the value. By porting to QByteArrayView, we document that
we'll accept non-NUL-terminated data, and do the NUL-termination
internally, using SSO'ed std::string, saving memory allocations in the
common case of short strings.

I didn't bother to check which direction std::string takes for
nullptrs these days (there was a change accepted in that area for
C++20 or 23), so play it safe and protect against them.

Follow-up to

Task-number: QTBUG-105302
Change-Id: I2369acc62f1d5cbc26135396cfe0602d8c75300c
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-08-06 14:21:46 +00:00
..
bic/data Add BiC data for the new way to do BiC testing 2022-05-12 13:33:41 +03:00
cmake CMake: Fix mockplugins test not to fail in a non-prefix build 2022-08-05 18:10:00 +02:00
concurrent Add license headers to cmake files 2022-08-03 17:14:55 +02:00
corelib qputenv: port to QByteArrayView 2022-08-06 14:21:46 +00:00
dbus Add license headers to cmake files 2022-08-03 17:14:55 +02:00
gui qputenv: port to QByteArrayView 2022-08-06 14:21:46 +00:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network qputenv: port to QByteArrayView 2022-08-06 14:21:46 +00:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other qputenv: port to QByteArrayView 2022-08-06 14:21:46 +00:00
printsupport qputenv: port to QByteArrayView 2022-08-06 14:21:46 +00:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql Add license headers to cmake files 2022-08-03 17:14:55 +02:00
testlib Add license headers to cmake files 2022-08-03 17:14:55 +02:00
tools moc: handle attributes in class declarations 2022-08-03 20:14:42 +02:00
wasm Add license headers to cmake files 2022-08-03 17:14:55 +02:00
widgets qputenv: port to QByteArrayView 2022-08-06 14:21:46 +00:00
xml QDomDocument: Add a way to enable spacing-only text nodes 2022-08-04 22:17:05 +02:00
CMakeLists.txt Add license headers to cmake files 2022-08-03 17:14:55 +02:00
network-settings.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00