diff options
| author | Øystein Heskestad <oystein.heskestad@qt.io> | 2024-02-20 15:44:09 +0100 |
|---|---|---|
| committer | Øystein Heskestad <oystein.heskestad@qt.io> | 2024-02-23 10:20:37 +0100 |
| commit | fb81373313c4d1834437351aeb5df4a44303b93c (patch) | |
| tree | d820d083a0bb5639ab53d9f24d8d8c5587707ba8 /src/corelib/serialization/qdatastream.cpp | |
| parent | 0165a91bff80722d2384914dd40ca65a20fc1a47 (diff) | |
QDataStream: Turn QDataStreamSizes enum into static contexpr quint32
The special sizes NullCode and ExtendedSize does not need to be part of
an enum. Turning them into constants removes the need for some casts.
Task-number: QTBUG-119952
Pick-to: 6.7
Change-Id: Ie7835c52f4642ab907b91f0eceac2ea7650e81da
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/serialization/qdatastream.cpp')
| -rw-r--r-- | src/corelib/serialization/qdatastream.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/serialization/qdatastream.cpp b/src/corelib/serialization/qdatastream.cpp index 14bbae53f43..826eecab87d 100644 --- a/src/corelib/serialization/qdatastream.cpp +++ b/src/corelib/serialization/qdatastream.cpp @@ -15,6 +15,9 @@ QT_BEGIN_NAMESPACE +constexpr quint32 QDataStream::NullCode; +constexpr quint32 QDataStream::ExtendedSize; + /*! \class QDataStream \inmodule QtCore |
