diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2018-06-19 18:28:36 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-06-19 17:23:10 +0000 |
commit | ba64b7d013fb95fb7b3afe9f1724edae7fcca2ed (patch) | |
tree | 9aaddf6c214b41999a584129e63282b443734ca9 /src/qmldebug | |
parent | 9333ea8649838d7e0400b0e94c8cbd4fa5d216b0 (diff) | |
parent | 5100d558742c682d83e0d4033d78ed4c9f521f56 (diff) |
Merge remote-tracking branch 'origin/5.11' into dev
Conflicts:
.qmake.conf
src/plugins/qmltooling/packetprotocol/qpacketprotocol.cpp
src/qml/compiler/qv4codegen.cpp
tests/auto/qml/debugger/qv4debugger/tst_qv4debugger.cpp
Change-Id: I010505326d76ee728ffe5fbd4c7879f28adadb12
Diffstat (limited to 'src/qmldebug')
-rw-r--r-- | src/qmldebug/qqmlprofilertypedevent.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qmldebug/qqmlprofilertypedevent.cpp b/src/qmldebug/qqmlprofilertypedevent.cpp index 31a36bd052..94591ba7e3 100644 --- a/src/qmldebug/qqmlprofilertypedevent.cpp +++ b/src/qmldebug/qqmlprofilertypedevent.cpp @@ -58,9 +58,8 @@ QDataStream &operator>>(QDataStream &stream, QQmlProfilerTypedEvent &event) RangeType rangeType = MaximumRangeType; if (!stream.atEnd()) { stream >> subtype; - rangeType = static_cast<RangeType>(subtype); - if (rangeType < 0 || rangeType > MaximumRangeType) - rangeType = MaximumRangeType; + if (subtype >= 0 && subtype < MaximumRangeType) + rangeType = static_cast<RangeType>(subtype); } else { subtype = -1; } |