Deprecate QBinaryJson::toRawData() immediately in 6.12
This method is not safe, with no clear path to make it behave like in
Qt 5 again, see below. Deprecate it in favor of the memory-safe
alternative.
[ChangeLog][Deprecation Notice][QBinaryJson] Deprecated the toRawData()
method, because the returned memory has to be manually released by the
user, in stark contrast to Qt 5, where it remained owned by the object.
A backward-compatible alternative is to use toBinaryData() instead.
Task-number: QTBUG-149054
Pick-to: 6.12
Change-Id: I59f9e38bb6b4031320160ab2617802e8cc59b89e
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>