Kernel: Use default con/de-structors

This may seem like a no-op change, however it shrinks down the Kernel by a bit:
.text -432
.unmap_after_init -60
.data -480
.debug_info -673
.debug_aranges 8
.debug_ranges -232
.debug_line -558
.debug_str -308
.debug_frame -40

With '= default', the compiler can do more inlining, hence the savings.
I intentionally omitted some opportunities for '= default', because they
would increase the Kernel size.
This commit is contained in:
Ben Wiederhake 2021-02-28 14:42:08 +01:00 committed by Andreas Kling
commit 860a3bbce3
Notes: sideshowbarker 2024-07-18 21:51:36 +09:00
28 changed files with 33 additions and 38 deletions

View file

@ -40,7 +40,7 @@ namespace Kernel {
class FileDescriptionData {
public:
virtual ~FileDescriptionData() { }
virtual ~FileDescriptionData() = default;
};
class FileDescription : public RefCounted<FileDescription> {