qt6-bb10/tests/auto/gui/kernel
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
..
noqteventloop Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qaction Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qactiongroup Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qaddpostroutine Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qbackingstore Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qclipboard Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qcursor Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qdrag Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qevent Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qfileopenevent Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qguiapplication Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qguieventdispatcher Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qguieventloop Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qguimetatype Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qguitimer Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qguivariant Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qhighdpi qputenv: port to QByteArrayView 2022-08-06 14:21:46 +00:00
qinputdevice Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qinputmethod Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qkeyevent Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qkeysequence Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qmouseevent Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qmouseevent_modal Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qopenglwindow Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qpalette Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qpixelformat Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qrasterwindow Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qscreen Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qshortcut Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qsurfaceformat Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtouchevent Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qwindow Add license headers to cmake files 2022-08-03 17:14:55 +02:00
CMakeLists.txt Add license headers to cmake files 2022-08-03 17:14:55 +02:00