aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@qt.io>2021-03-30 01:14:21 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-04-01 18:44:00 +0000
commit11a6f5dd0c6ce61106d53872f16136c0a4bb39dd (patch)
tree62f912f1e24cd4300ad79c8f2ae0dc7efb695fb3
parentcf467a8879afe40f8d8741b528fc347a67ed1381 (diff)
Remove the custom copy assignment and ctor from the invasive listv6.1.0-beta3
There's no need to add custom implementation here, the lists are also meant to be trivial by design so having the ctor and assignment operator there makes the class less usable. Change-Id: Ieeaf162db29f0e9097cc890c4126e32ff949cf3c Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit f9b29681fff0f791a011a0c0124ceb6b60ae8ab3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/utils/qssginvasivelinkedlist_p.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/utils/qssginvasivelinkedlist_p.h b/src/utils/qssginvasivelinkedlist_p.h
index 5214ea22..8fce47f1 100644
--- a/src/utils/qssginvasivelinkedlist_p.h
+++ b/src/utils/qssginvasivelinkedlist_p.h
@@ -165,13 +165,6 @@ struct QSSGInvasiveSingleLinkedList : public QSSGInvasiveLinkListBase<T, QSSGNul
using iterator = QSSGLinkedListIterator<T, TailOp>;
using const_iterator = iterator;
T *m_head = nullptr;
- QSSGInvasiveSingleLinkedList() = default;
- QSSGInvasiveSingleLinkedList(const List &inOther) : m_head(inOther.m_head) {}
- List &operator=(const List &inOther)
- {
- m_head = inOther.m_head;
- return *this;
- }
inline T &front() const { return *m_head; }
@@ -252,15 +245,6 @@ struct QSSGInvasiveLinkedList : public QSSGInvasiveLinkListBase<T, QSSGListAcces
T *m_head = nullptr;
T *m_tail = nullptr;
- QSSGInvasiveLinkedList() = default;
- QSSGInvasiveLinkedList(const List &inOther) : m_head(inOther.m_head), m_tail(inOther.m_tail) {}
- List &operator=(const List &inOther)
- {
- m_head = inOther.m_head;
- m_tail = inOther.m_tail;
- return *this;
- }
-
inline T &front() const
{
Q_ASSERT(m_head);