diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-02-26 02:42:36 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-02-26 02:44:10 (GMT) |
commit | a0278d4330e4aac8413055b5a34feb54ab74404d (patch) | |
tree | 1584db2e44eea4cb8eb0722ae38a3f219169d094 /src/corelib/tools | |
parent | 8e5df27bbb61951a8ccce8b2a7c5af461966329c (diff) | |
download | Qt-a0278d4330e4aac8413055b5a34feb54ab74404d.zip Qt-a0278d4330e4aac8413055b5a34feb54ab74404d.tar.gz Qt-a0278d4330e4aac8413055b5a34feb54ab74404d.tar.bz2 |
Make sure that QEasingCurve::type when streamed is a quint8, as documented
Diffstat (limited to 'src/corelib/tools')
-rw-r--r-- | src/corelib/tools/qeasingcurve.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qeasingcurve.cpp b/src/corelib/tools/qeasingcurve.cpp index 64b4dca..d4b2c27 100644 --- a/src/corelib/tools/qeasingcurve.cpp +++ b/src/corelib/tools/qeasingcurve.cpp @@ -860,7 +860,7 @@ QDebug operator<<(QDebug debug, const QEasingCurve &item) QDataStream &operator<<(QDataStream &stream, const QEasingCurve &easing) { - stream << easing.d_ptr->type; + stream << quint8(easing.d_ptr->type); stream << quint64(quintptr(easing.d_ptr->func)); bool hasConfig = easing.d_ptr->config; @@ -886,7 +886,7 @@ QDataStream &operator<<(QDataStream &stream, const QEasingCurve &easing) QDataStream &operator>>(QDataStream &stream, QEasingCurve &easing) { QEasingCurve::Type type; - int int_type; + quint8 int_type; stream >> int_type; type = static_cast<QEasingCurve::Type>(int_type); easing.setType(type); |