qt6-bb10/tests/auto/corelib/serialization/qdatastream
Ivan Solovev cbc6ee0eb9 Deprecate QDataStream::readBytes(char *&, uint &) instead of removing it
We cannot remove the overload using QT_REMOVED_SINCE, because a qint64
lvalue in the new overload will not bind to an uint& parameter, so the
old code would not compile.

Deprecate the old overload, and add a unit-test that makes sure that
it still behaves correctly.

This commit also introduces the new deprecation macros that are
required to do the deprecation in Qt 6.11.

Amends fd48ce0b73

Found in 6.7 API review

Pick-to: 6.7
Change-Id: I02893bfbe040df736f8e746384e0261a0f0041d3
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2024-02-07 15:02:19 +01:00
..
.gitignore
CMakeLists.txt CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
datastream.q42
gen_typedefq5.cpp Change license for tests files 2024-02-04 09:56:42 +01:00
tst_qdatastream.cpp Deprecate QDataStream::readBytes(char *&, uint &) instead of removing it 2024-02-07 15:02:19 +01:00
typedef.q5 QVariant: use a typedef name when saving user types to QDataStream 2021-12-17 17:54:05 +01:00