From 33be3fe92bc12395e8f46c9c04e40f5e51655524 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 6 Dec 2017 09:40:16 +0100 Subject: 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 --- src/corelib/tools/qvector.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/corelib/tools') 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 class QVector { @@ -290,8 +288,6 @@ public: inline std::vector toStdVector() const { return std::vector(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); } -- cgit v1.2.3