mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
IntrusiveList: Remove redundant constructor
Problem: - The constructor is defined to be the default constructor. Solution: - Let the compiler generate the destructor by setting it to the default.
This commit is contained in:
parent
1965d60aeb
commit
1c6d2ff21c
1 changed files with 1 additions and 6 deletions
|
@ -46,7 +46,7 @@ private:
|
||||||
template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
|
template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
|
||||||
class IntrusiveList {
|
class IntrusiveList {
|
||||||
public:
|
public:
|
||||||
IntrusiveList();
|
IntrusiveList() = default;
|
||||||
~IntrusiveList();
|
~IntrusiveList();
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
|
@ -165,11 +165,6 @@ inline typename IntrusiveList<T, Container, member>::Iterator& IntrusiveList<T,
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
|
|
||||||
inline IntrusiveList<T, Container, member>::IntrusiveList()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
|
template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
|
||||||
inline IntrusiveList<T, Container, member>::~IntrusiveList()
|
inline IntrusiveList<T, Container, member>::~IntrusiveList()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue