qt5base-lts/tests/auto/corelib/text/qbytearrayview
Mårten Nordheim bbe7570ddc QByteArrayView: move array size deduction feature to fromArray
1. Make the ctor unable to construct a QByteArrayView from
array literals other than 'char'.
    With the new behavior it would either be (very likely) unintended to
    pass e.g. a std::byte array to the ctor. And it would be confusing
    because you would get different sizes based on signed-ness.
2. Introduce fromArray
    Only supports array literals. Constructs a view of the full size.
    Explicit so it shouldn't be surprising.

Change-Id: Ifdb55eb21057dfe7053b2561bd81e2c9825e9bc6
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2020-09-18 23:34:49 +02:00
..
CMakeLists.txt Introduce QByteArrayView 2020-07-08 08:45:49 +02:00
qbytearrayview.pro Introduce QByteArrayView 2020-07-08 08:45:49 +02:00
tst_qbytearrayview.cpp QByteArrayView: move array size deduction feature to fromArray 2020-09-18 23:34:49 +02:00