From c889b5690113f8a76695dec6f988f79d51793959 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 13 May 2024 14:56:26 +0200 Subject: [PATCH] QPropertyBinding: port QScopedPointer to std::unique_ptr This is in preparation of adding QT_NO_SCOPED_POINTER. Change-Id: I040e2ce66590a8a3be48d6d69bbb2493c9fc81b9 Reviewed-by: Fabian Kosmale --- src/corelib/kernel/qproperty_p.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h index 8ae6664a2b6..376482a6afe 100644 --- a/src/corelib/kernel/qproperty_p.h +++ b/src/corelib/kernel/qproperty_p.h @@ -19,12 +19,13 @@ #include #include -#include #include #include #include #include +#include + QT_BEGIN_NAMESPACE namespace QtPrivate { @@ -292,7 +293,7 @@ private: ObserverArray inlineDependencyObservers; // for things we are observing QPropertyObserverPointer firstObserver; // list of observers observing us - QScopedPointer> heapObservers; // for things we are observing + std::unique_ptr> heapObservers; // for things we are observing protected: QUntypedPropertyData *propertyDataPtr = nullptr;