summaryrefslogtreecommitdiff
path: root/Kernel/Interrupts
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-02-28 14:42:08 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-28 18:09:12 +0100
commit860a3bbce342067069d4c7d2e4396a667ff324fe (patch)
tree8110f5d9a7293a4371205ffffd7c8717b8a29471 /Kernel/Interrupts
parent2dea887e8fe43438cd5005820515fc21a1e4521c (diff)
downloadserenity-860a3bbce342067069d4c7d2e4396a667ff324fe.zip
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.
Diffstat (limited to 'Kernel/Interrupts')
-rw-r--r--Kernel/Interrupts/IRQController.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Interrupts/IRQController.h b/Kernel/Interrupts/IRQController.h
index 35e0fd5276..fe4f5bbf35 100644
--- a/Kernel/Interrupts/IRQController.h
+++ b/Kernel/Interrupts/IRQController.h
@@ -39,7 +39,7 @@ enum class IRQControllerType {
class IRQController : public RefCounted<IRQController> {
public:
- virtual ~IRQController() { }
+ virtual ~IRQController() = default;
virtual void enable(const GenericInterruptHandler&) = 0;
virtual void disable(const GenericInterruptHandler&) = 0;
@@ -57,7 +57,7 @@ public:
virtual IRQControllerType type() const = 0;
protected:
- IRQController() { }
+ IRQController() = default;
virtual void initialize() = 0;
bool m_hard_disabled { false };
};