mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:35:06 +00:00
Kernel: Use default constructors/destructors
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
This commit is contained in:
parent
68f75ab98e
commit
190cf1507b
79 changed files with 102 additions and 309 deletions
|
@ -37,9 +37,7 @@ bool Thread::Blocker::add_to_blocker_set(Thread::BlockerSet& blocker_set, void*
|
|||
return false;
|
||||
}
|
||||
|
||||
Thread::Blocker::~Blocker()
|
||||
{
|
||||
}
|
||||
Thread::Blocker::~Blocker() = default;
|
||||
|
||||
void Thread::Blocker::finalize()
|
||||
{
|
||||
|
@ -132,9 +130,7 @@ bool Thread::WaitQueueBlocker::setup_blocker()
|
|||
return add_to_blocker_set(m_wait_queue);
|
||||
}
|
||||
|
||||
Thread::WaitQueueBlocker::~WaitQueueBlocker()
|
||||
{
|
||||
}
|
||||
Thread::WaitQueueBlocker::~WaitQueueBlocker() = default;
|
||||
|
||||
bool Thread::WaitQueueBlocker::unblock()
|
||||
{
|
||||
|
@ -160,9 +156,7 @@ bool Thread::FutexBlocker::setup_blocker()
|
|||
return add_to_blocker_set(m_futex_queue);
|
||||
}
|
||||
|
||||
Thread::FutexBlocker::~FutexBlocker()
|
||||
{
|
||||
}
|
||||
Thread::FutexBlocker::~FutexBlocker() = default;
|
||||
|
||||
void Thread::FutexBlocker::finish_requeue(FutexQueue& futex_queue)
|
||||
{
|
||||
|
@ -372,9 +366,7 @@ bool Thread::SelectBlocker::setup_blocker()
|
|||
return should_block;
|
||||
}
|
||||
|
||||
Thread::SelectBlocker::~SelectBlocker()
|
||||
{
|
||||
}
|
||||
Thread::SelectBlocker::~SelectBlocker() = default;
|
||||
|
||||
void Thread::SelectBlocker::finalize()
|
||||
{
|
||||
|
@ -504,9 +496,7 @@ Thread::WaitBlockerSet::ProcessBlockInfo::ProcessBlockInfo(NonnullRefPtr<Process
|
|||
{
|
||||
}
|
||||
|
||||
Thread::WaitBlockerSet::ProcessBlockInfo::~ProcessBlockInfo()
|
||||
{
|
||||
}
|
||||
Thread::WaitBlockerSet::ProcessBlockInfo::~ProcessBlockInfo() = default;
|
||||
|
||||
void Thread::WaitBlockerSet::try_unblock(Thread::WaitBlocker& blocker)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue