QPropertyBinding: port QScopedPointer to std::unique_ptr

This is in preparation of adding QT_NO_SCOPED_POINTER.

Change-Id: I040e2ce66590a8a3be48d6d69bbb2493c9fc81b9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
bb10
Marc Mutz 2024-05-13 14:56:26 +02:00
parent fd36609064
commit c889b56901
1 changed files with 3 additions and 2 deletions

View File

@ -19,12 +19,13 @@
#include <qproperty.h>
#include <qmetaobject.h>
#include <qscopedpointer.h>
#include <qscopedvaluerollback.h>
#include <qvariant.h>
#include <vector>
#include <QtCore/QVarLengthArray>
#include <memory>
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<std::vector<QPropertyObserver>> heapObservers; // for things we are observing
std::unique_ptr<std::vector<QPropertyObserver>> heapObservers; // for things we are observing
protected:
QUntypedPropertyData *propertyDataPtr = nullptr;