Commit e4961b35 authored by Oliver Wolff's avatar Oliver Wolff

Revert "Revert "QVector: add a construction from QArrayDataPointerRef""

Removing the constructor caused a binary compatibility break. The symbol
is being used even though it might be considered private API.

This reverts commit bf826895.

Fixes: QTBUG-86392
Pick-to: 5.15
Change-Id: I04fc3058e68a6a0cf293bcc8a5a83031dc1e96fb
Reviewed-by: default avatarLars Knoll <lars.knoll@qt.io>
Reviewed-by: default avatarVille Voutilainen <ville.voutilainen@qt.io>
parent 85aa5633
......@@ -80,6 +80,7 @@ public:
QVector<T> &operator=(std::initializer_list<T> args);
template <typename InputIterator, QtPrivate::IfIsInputIterator<InputIterator> = true>
inline QVector(InputIterator first, InputIterator last);
explicit QVector(QArrayDataPointerRef<T> ref) noexcept : d(ref.ptr) {}
bool operator==(const QVector<T> &v) const;
inline bool operator!=(const QVector<T> &v) const { return !(*this == v); }
......
......@@ -269,6 +269,11 @@
The value type of \c InputIterator must be convertible to \c T.
*/
/*!
\fn template <typename T> QVector<T>::QVector(QArrayDataPointerRef<T> ref)
\internal
*/
/*! \fn template <typename T> QVector<T>::~QVector()
Destroys the vector.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment