diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-12-06 09:40:16 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-12-06 22:40:15 +0000 |
commit | 33be3fe92bc12395e8f46c9c04e40f5e51655524 (patch) | |
tree | 4c6a4e65d9b1265b67a4e5855496945464f03f2d | |
parent | 8aacde593792125ba4b75964970f6b65a689915c (diff) |
QVector: drop QRegion friendship: it's not needed
I don't know when it ceased to be needed, but QRegion no longer
does anything fancy with QVector.
Change-Id: I1bdfefc84724c379fab76dada35575666144df12
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | src/corelib/tools/qvector.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/corelib/tools/qvector.h b/src/corelib/tools/qvector.h index 4daf894887..6825782131 100644 --- a/src/corelib/tools/qvector.h +++ b/src/corelib/tools/qvector.h @@ -59,8 +59,6 @@ QT_BEGIN_NAMESPACE -class QRegion; - template <typename T> class QVector { @@ -290,8 +288,6 @@ public: inline std::vector<T> toStdVector() const { return std::vector<T>(d->begin(), d->end()); } private: - friend class QRegion; // Optimization for QRegion::rects() - // ### Qt6: remove const from int parameters void reallocData(const int size, const int alloc, QArrayData::AllocationOptions options = QArrayData::Default); void reallocData(const int sz) { reallocData(sz, d->alloc); } |