diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-04-16 14:30:17 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-27 07:45:49 +0000 |
commit | 5d2f97791ccff58bb945acbc28df65fa0521a1f6 (patch) | |
tree | d865355d90bba0eaa44f053dd1db2fbf00e76cf1 /src/qml/qml/qqmlabstractbinding_p.h | |
parent | 880868364f456585a9d640ea4a1a8bf84ea885c6 (diff) |
Smaller cleanups
Change-Id: Ib8a222c26316ad31699d3becaa945ac4035e437b
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlabstractbinding_p.h')
-rw-r--r-- | src/qml/qml/qqmlabstractbinding_p.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/qml/qml/qqmlabstractbinding_p.h b/src/qml/qml/qqmlabstractbinding_p.h index 2a04dacec3..d4cb4e0e9e 100644 --- a/src/qml/qml/qqmlabstractbinding_p.h +++ b/src/qml/qml/qqmlabstractbinding_p.h @@ -95,16 +95,12 @@ protected: void clear(); private: - Pointer weakPointer(); - friend class QQmlData; - friend class QQmlComponentPrivate; friend class QQmlValueTypeProxyBinding; - friend class QQmlPropertyPrivate; - friend class QtSharedPointer::ExternalRefCount<QQmlAbstractBinding>; - friend class QV4Bindings; friend class QQmlObjectCreator; + Pointer weakPointer(); + typedef QSharedPointer<QQmlAbstractBinding> SharedPointer; // To save memory, we also store the rarely used weakPointer() instance in here // We also use the flag bits: |