mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03: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
@ -116,10 +116,6 @@ UNMAP_AFTER_INIT VirtIO::Device::Device(PCI::Address address)
|
|||||||
set_status_bit(DEVICE_STATUS_DRIVER);
|
set_status_bit(DEVICE_STATUS_DRIVER);
|
||||||
}
|
}
|
||||||
|
|
||||||
Device::~Device()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
auto Device::mapping_for_bar(u8 bar) -> MappedMMIO&
|
auto Device::mapping_for_bar(u8 bar) -> MappedMMIO&
|
||||||
{
|
{
|
||||||
VERIFY(m_use_mmio);
|
VERIFY(m_use_mmio);
|
||||||
|
@ -88,7 +88,7 @@ class Device
|
|||||||
: public PCI::Device
|
: public PCI::Device
|
||||||
, public IRQHandler {
|
, public IRQHandler {
|
||||||
public:
|
public:
|
||||||
virtual ~Device() override;
|
virtual ~Device() override = default;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual StringView class_name() const = 0;
|
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()
|
bool RNG::handle_device_config_change()
|
||||||
{
|
{
|
||||||
VERIFY_NOT_REACHED(); // Device has no config
|
VERIFY_NOT_REACHED(); // Device has no config
|
||||||
|
@ -21,7 +21,7 @@ class RNG final
|
|||||||
public:
|
public:
|
||||||
static NonnullRefPtr<RNG> must_create(PCI::Address address);
|
static NonnullRefPtr<RNG> must_create(PCI::Address address);
|
||||||
virtual StringView purpose() const override { return class_name(); }
|
virtual StringView purpose() const override { return class_name(); }
|
||||||
virtual ~RNG() override;
|
virtual ~RNG() override = default;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual StringView class_name() const override { return "VirtIOConsole"; }
|
virtual StringView class_name() const override { return "VirtIOConsole"; }
|
||||||
|
Loading…
Reference in New Issue
Block a user