replace QList<T>::detach_helper() with its body [ci reset]

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-07-14 03:52:21 +03:00
parent 01b92d018d
commit 9cf35ab6cd

View file

@ -101,7 +101,7 @@ public:
inline int size() const { return p.size(); }
inline void detach() { if (d->ref != 1) detach_helper(); }
inline void detach() { if (d->ref != 1) detach_helper(d->alloc); }
inline bool isDetached() const { return d->ref == 1; }
inline bool isEmpty() const { return p.isEmpty(); }
@ -290,7 +290,6 @@ public:
private:
void detach_helper(int alloc);
void detach_helper();
void node_construct(Node *n, const T &t);
void node_destruct(Node *n);
@ -585,12 +584,6 @@ Q_OUTOFLINE_TEMPLATE void QList<T>::detach_helper(int alloc)
QListData::freeData(x);
}
template <typename T>
Q_OUTOFLINE_TEMPLATE void QList<T>::detach_helper()
{
detach_helper(d->alloc);
}
template <typename T>
Q_OUTOFLINE_TEMPLATE QList<T>::~QList()
{