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>
This commit is contained in:
Marc Mutz 2017-12-06 09:40:16 +01:00
parent 8aacde5937
commit 33be3fe92b

View File

@ -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); }