mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
replace QList<T>::detach_helper() with its body [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
01b92d018d
commit
9cf35ab6cd
1 changed files with 1 additions and 8 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue