QJsonValueConstRef: remove duplicate Q_ASSERT in objectKey()

Amends 14d1108d3562f6e409505ba49b7bce82d70bd64f.

Pick-to: 6.8
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>
This commit is contained in:
Marc Mutz 2025-02-11 11:25:39 +01:00 committed by Qt Cherry-pick Bot
parent bc533b0fb2
commit 6dd6836227

View File

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