diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-04-24 08:50:16 -0700 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-05-20 17:23:33 +0000 |
commit | 9269dcc8ed9839c403f4f88edd79d0b8f0945d4a (patch) | |
tree | 1798cd089816861f2b0f4ccc39f2ecc801557208 /src/corelib/tools/qcontiguouscache.h | |
parent | 9a1283f8d3a671c3d4d08b9a50c3ad1460b1b1f8 (diff) |
Fix compilation of QContiguousCache::operator=
freeData() takes a Data*, not a QContiguousCacheData*.
Task-number: QTBUG-45783
Change-Id: I96d7ac38dac24b418138ffff13d7fdf09b1d6b07
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/tools/qcontiguouscache.h')
-rw-r--r-- | src/corelib/tools/qcontiguouscache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qcontiguouscache.h b/src/corelib/tools/qcontiguouscache.h index fc4fb1e7cb..41d198f9bc 100644 --- a/src/corelib/tools/qcontiguouscache.h +++ b/src/corelib/tools/qcontiguouscache.h @@ -291,7 +291,7 @@ QContiguousCache<T> &QContiguousCache<T>::operator=(const QContiguousCache<T> &o { other.d->ref.ref(); if (!d->ref.deref()) - freeData(d); + freeData(p); d = other.d; if (!d->sharable) detach_helper(); |