From 0e803fb025813d4cd6a7df14695c75776ae7e27b Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 1 Jul 2019 20:02:04 +0200 Subject: Fix some const-correctness issues Found by locally making QExplicitlySharedDataPointer propagate const. Change-Id: Ib8fdb28420d0470ca839d0cab15439e23165a3e2 Reviewed-by: Ulf Hermann --- src/qml/qml/qqmlobjectcreator_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qml/qml/qqmlobjectcreator_p.h') diff --git a/src/qml/qml/qqmlobjectcreator_p.h b/src/qml/qml/qqmlobjectcreator_p.h index 0766e2082e..1cbad87920 100644 --- a/src/qml/qml/qqmlobjectcreator_p.h +++ b/src/qml/qml/qqmlobjectcreator_p.h @@ -94,14 +94,14 @@ public: QQmlContextData *finalize(QQmlInstantiationInterrupt &interrupt); void clear(); - QQmlComponentAttached **componentAttachment() const { return &sharedState->componentAttached; } + QQmlComponentAttached **componentAttachment() { return &sharedState->componentAttached; } - QList *finalizeCallbacks() const { return &sharedState->finalizeCallbacks; } + QList *finalizeCallbacks() { return &sharedState->finalizeCallbacks; } QList errors; QQmlContextData *parentContextData() const { return parentContext.contextData(); } - QFiniteStack > &allCreatedObjects() const { return sharedState->allCreatedObjects; } + QFiniteStack > &allCreatedObjects() { return sharedState->allCreatedObjects; } private: QQmlObjectCreator(QQmlContextData *contextData, const QQmlRefPointer &compilationUnit, QQmlObjectCreatorSharedState *inheritedSharedState); -- cgit v1.2.3