mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
AK: Get rid of make_singleton function
Just default the InitFunction template argument.
This commit is contained in:
parent
8a75e0b892
commit
5a98e329d1
31 changed files with 42 additions and 46 deletions
|
@ -57,7 +57,7 @@ namespace Kernel {
|
|||
#define VBE_DISPI_ENABLED 0x01
|
||||
#define VBE_DISPI_LFB_ENABLED 0x40
|
||||
|
||||
static auto s_the = AK::make_singleton<BXVGADevice>();
|
||||
static AK::Singleton<BXVGADevice> s_the;
|
||||
|
||||
void BXVGADevice::initialize()
|
||||
{
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
static auto s_all_devices = AK::make_singleton<HashMap<u32, Device*>>();
|
||||
static AK::Singleton<HashMap<u32, Device*>> s_all_devices;
|
||||
|
||||
HashMap<u32, Device*>& Device::all_devices()
|
||||
{
|
||||
|
|
|
@ -336,7 +336,7 @@ void KeyboardDevice::handle_irq(const RegisterState&)
|
|||
}
|
||||
}
|
||||
|
||||
static auto s_the = AK::make_singleton<KeyboardDevice>();
|
||||
static AK::Singleton<KeyboardDevice> s_the;
|
||||
|
||||
void KeyboardDevice::initialize()
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
static auto s_the = AK::make_singleton<NullDevice>();
|
||||
static AK::Singleton<NullDevice> s_the;
|
||||
|
||||
void NullDevice::initialize()
|
||||
{
|
||||
|
|
|
@ -108,7 +108,7 @@ namespace Kernel {
|
|||
#define PCI_Mass_Storage_Class 0x1
|
||||
#define PCI_IDE_Controller_Subclass 0x1
|
||||
|
||||
static auto s_pata_lock = AK::make_singleton<Lock>();
|
||||
static AK::Singleton<Lock> s_pata_lock;
|
||||
|
||||
static Lock& s_lock()
|
||||
{
|
||||
|
|
|
@ -57,7 +57,7 @@ namespace Kernel {
|
|||
|
||||
//#define PS2MOUSE_DEBUG
|
||||
|
||||
static auto s_the = AK::make_singleton<PS2MouseDevice>();
|
||||
static AK::Singleton<PS2MouseDevice> s_the;
|
||||
|
||||
PS2MouseDevice::PS2MouseDevice()
|
||||
: IRQHandler(IRQ_MOUSE)
|
||||
|
|
|
@ -77,7 +77,7 @@ void SB16::set_sample_rate(uint16_t hz)
|
|||
dsp_write((u8)hz);
|
||||
}
|
||||
|
||||
static auto s_the = AK::make_singleton<SB16>();
|
||||
static AK::Singleton<SB16> s_the;
|
||||
|
||||
SB16::SB16()
|
||||
: IRQHandler(SB16_DEFAULT_IRQ)
|
||||
|
|
|
@ -111,7 +111,7 @@ private:
|
|||
OwnPtr<VMWareBackdoor> m_backdoor;
|
||||
};
|
||||
|
||||
static auto s_vmware_backdoor = AK::make_singleton<VMWareBackdoorDetector>();
|
||||
static AK::Singleton<VMWareBackdoorDetector> s_vmware_backdoor;
|
||||
|
||||
VMWareBackdoor* VMWareBackdoor::the()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue