OSDN Git Service

use QDataStream::HostEndian as byte order by default for QDataStream and do not byte...
authorIvailo Monev <xakepa10@gmail.com>
Sun, 30 Oct 2022 23:25:16 +0000 (01:25 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 31 Oct 2022 00:02:49 +0000 (02:02 +0200)
commitbec8e7280cc44c50f0cbacb5edf3b7d29ef784c1
treeefd5a7ea5c8388fc22be0620fafe6fc3276fadf6
parented93b0562efb59e0febd5b213990ad957aee51f8
use QDataStream::HostEndian as byte order by default for QDataStream and do not byte-swap QString data when streaming it

both are breaking changes, any data stored via QDataStream will not load
now by default unless the byte order is explicitly set to big endian

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/global/qconfig.h.cmake
src/core/io/qdatastream.cpp
src/core/tools/qstring.cpp
tests/auto/qdatastream/tst_qdatastream.cpp