QJsonValueConstRef: remove duplicate Q_ASSERT in objectKey()

Amends 14d1108d3562f6e409505ba49b7bce82d70bd64f.

Change-Id: I9fcfb864254d040cd1de8aa0dc818ccd9104487b
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
(cherry picked from commit 6aaa874d79805dc6407a68e56f8d9ee128ad37bc)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 6dd6836227c3bce065e54d8562ed311acdacdd5f)
This commit is contained in:
Marc Mutz 2025-02-11 11:25:39 +01:00 committed by Qt Cherry-pick Bot
parent fce2a17a9c
commit a70a92314e

View File

@ -1017,7 +1017,6 @@ QJsonValue QJsonValueConstRef::concrete(QJsonValueConstRef self) noexcept
QString QJsonValueConstRef::objectKey(QJsonValueConstRef self) QString QJsonValueConstRef::objectKey(QJsonValueConstRef self)
{ {
Q_ASSERT(self.is_object);
Q_ASSERT(self.is_object); Q_ASSERT(self.is_object);
const QCborContainerPrivate *d = QJsonPrivate::Value::container(self); const QCborContainerPrivate *d = QJsonPrivate::Value::container(self);
qsizetype index = QJsonPrivate::Value::indexHelper(self); qsizetype index = QJsonPrivate::Value::indexHelper(self);