diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-04-26 11:40:39 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-04-26 12:36:59 +0200 |
commit | 9fdfff50a7e3ccb4dbb96ce72e54613dd5e1a098 (patch) | |
tree | cd53e31b884e75872353ea29aa827282f5d44aae /src/qml/qml/qqmlabstractbinding.cpp | |
parent | 965ffb7f38a2fd933f5aafda5ee6e0e97c309319 (diff) |
Silence code checker warning
Obviously the intention is not to skip the loop when vtbinding is
nullptr. Rather, it should never be nullptr.
Change-Id: I93868664881f6c638a09fc598fcc77e9f5fcc507
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlabstractbinding.cpp')
-rw-r--r-- | src/qml/qml/qqmlabstractbinding.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlabstractbinding.cpp b/src/qml/qml/qqmlabstractbinding.cpp index 8f0207ce3e..8c28c525f2 100644 --- a/src/qml/qml/qqmlabstractbinding.cpp +++ b/src/qml/qml/qqmlabstractbinding.cpp @@ -144,8 +144,9 @@ void QQmlAbstractBinding::removeFromObject() // Find the value type binding QQmlAbstractBinding *vtbinding = data->bindings; - while (vtbinding && (vtbinding->targetPropertyIndex().coreIndex() != coreIndex || - vtbinding->targetPropertyIndex().hasValueTypeIndex())) { + Q_ASSERT(vtbinding); + while (vtbinding->targetPropertyIndex().coreIndex() != coreIndex + || vtbinding->targetPropertyIndex().hasValueTypeIndex()) { vtbinding = vtbinding->nextBinding(); Q_ASSERT(vtbinding); } |