mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03: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
Notes:
sideshowbarker
2024-07-18 17:34:14 +09:00
Author: https://github.com/ldm5180 Commit: https://github.com/SerenityOS/serenity/commit/1c6d2ff21c1 Pull-request: https://github.com/SerenityOS/serenity/pull/7366
@ -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…
Reference in New Issue
Block a user