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>
This commit is contained in:
parent
fd36609064
commit
c889b56901
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user