diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2024-02-10 12:28:45 -0800 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2024-03-12 12:51:43 -0800 |
| commit | 6dfc92abe8796462eacd881cd896313d654df24d (patch) | |
| tree | d76417891c3b5f08775779376f5ea0b1230eb3eb /src/corelib/serialization/qdatastream.cpp | |
| parent | 9b2835e464748f499758a7eef0d4c49452e7211a (diff) | |
QDataStream: use NSDMI
Just a little clean-up to avoid repetition.
Change-Id: I50e2158aeade4256ad1dfffd17b29a5b36c71ddc
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/serialization/qdatastream.cpp')
| -rw-r--r-- | src/corelib/serialization/qdatastream.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/corelib/serialization/qdatastream.cpp b/src/corelib/serialization/qdatastream.cpp index f1f45895aa9..f1572b46c7d 100644 --- a/src/corelib/serialization/qdatastream.cpp +++ b/src/corelib/serialization/qdatastream.cpp @@ -271,12 +271,6 @@ constexpr quint32 QDataStream::ExtendedSize; QDataStream::QDataStream() { - dev = nullptr; - owndev = false; - byteorder = BigEndian; - ver = Qt_DefaultCompiledVersion; - noswap = QSysInfo::ByteOrder == QSysInfo::BigEndian; - q_status = Ok; } /*! @@ -288,11 +282,6 @@ QDataStream::QDataStream() QDataStream::QDataStream(QIODevice *d) { dev = d; // set device - owndev = false; - byteorder = BigEndian; // default byte order - ver = Qt_DefaultCompiledVersion; - noswap = QSysInfo::ByteOrder == QSysInfo::BigEndian; - q_status = Ok; } /*! @@ -317,10 +306,6 @@ QDataStream::QDataStream(QByteArray *a, OpenMode flags) buf->open(flags); dev = buf; owndev = true; - byteorder = BigEndian; - ver = Qt_DefaultCompiledVersion; - noswap = QSysInfo::ByteOrder == QSysInfo::BigEndian; - q_status = Ok; } /*! @@ -341,10 +326,6 @@ QDataStream::QDataStream(const QByteArray &a) buf->open(QIODevice::ReadOnly); dev = buf; owndev = true; - byteorder = BigEndian; - ver = Qt_DefaultCompiledVersion; - noswap = QSysInfo::ByteOrder == QSysInfo::BigEndian; - q_status = Ok; } /*! |
