summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydatapointer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qarraydatapointer.h')
-rw-r--r--src/corelib/tools/qarraydatapointer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qarraydatapointer.h b/src/corelib/tools/qarraydatapointer.h
index b7236d485a..86997985d1 100644
--- a/src/corelib/tools/qarraydatapointer.h
+++ b/src/corelib/tools/qarraydatapointer.h
@@ -58,7 +58,7 @@ public:
}
QArrayDataPointer(const QArrayDataPointer &other)
- : d(other.d->ref.ref()
+ : d(other.d->ref()
? other.d
: other.clone(other.d->cloneFlags()))
{
@@ -109,7 +109,7 @@ public:
~QArrayDataPointer()
{
- if (!d->ref.deref()) {
+ if (!d->deref()) {
if (d->isMutable())
(*this)->destroyAll();
Data::deallocate(d);