mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 13:35:12 +00:00
Kernel: Use = default for empty destructors
This commit is contained in:
parent
e15be89e18
commit
c0341215de
Notes:
sideshowbarker
2024-07-18 04:56:06 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/c0341215de4 Pull-request: https://github.com/SerenityOS/serenity/pull/9720
4 changed files with 2 additions and 10 deletions
|
@ -116,10 +116,6 @@ UNMAP_AFTER_INIT VirtIO::Device::Device(PCI::Address address)
|
|||
set_status_bit(DEVICE_STATUS_DRIVER);
|
||||
}
|
||||
|
||||
Device::~Device()
|
||||
{
|
||||
}
|
||||
|
||||
auto Device::mapping_for_bar(u8 bar) -> MappedMMIO&
|
||||
{
|
||||
VERIFY(m_use_mmio);
|
||||
|
|
|
@ -88,7 +88,7 @@ class Device
|
|||
: public PCI::Device
|
||||
, public IRQHandler {
|
||||
public:
|
||||
virtual ~Device() override;
|
||||
virtual ~Device() override = default;
|
||||
|
||||
protected:
|
||||
virtual StringView class_name() const = 0;
|
||||
|
|
|
@ -33,10 +33,6 @@ UNMAP_AFTER_INIT RNG::RNG(PCI::Address address)
|
|||
}
|
||||
}
|
||||
|
||||
RNG::~RNG()
|
||||
{
|
||||
}
|
||||
|
||||
bool RNG::handle_device_config_change()
|
||||
{
|
||||
VERIFY_NOT_REACHED(); // Device has no config
|
||||
|
|
|
@ -21,7 +21,7 @@ class RNG final
|
|||
public:
|
||||
static NonnullRefPtr<RNG> must_create(PCI::Address address);
|
||||
virtual StringView purpose() const override { return class_name(); }
|
||||
virtual ~RNG() override;
|
||||
virtual ~RNG() override = default;
|
||||
|
||||
private:
|
||||
virtual StringView class_name() const override { return "VirtIOConsole"; }
|
||||
|
|
Loading…
Add table
Reference in a new issue