mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
parent
527c8047fe
commit
f48feae0b2
Notes:
sideshowbarker
2024-07-19 03:23:13 +09:00
Author: https://github.com/tomuta
Commit: f48feae0b2
Pull-request: https://github.com/SerenityOS/serenity/pull/3229
Issue: https://github.com/SerenityOS/serenity/issues/3226
Reviewed-by: https://github.com/awesomekling
44 changed files with 184 additions and 146 deletions
|
@ -26,21 +26,25 @@
|
|||
|
||||
#include "NullDevice.h"
|
||||
#include <AK/StdLibExtras.h>
|
||||
#include <Kernel/Singleton.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
static NullDevice* s_the;
|
||||
static auto s_the = make_singleton<NullDevice>();
|
||||
|
||||
void NullDevice::initialize()
|
||||
{
|
||||
s_the.ensure_instance();
|
||||
}
|
||||
|
||||
NullDevice& NullDevice::the()
|
||||
{
|
||||
ASSERT(s_the);
|
||||
return *s_the;
|
||||
}
|
||||
|
||||
NullDevice::NullDevice()
|
||||
: CharacterDevice(1, 3)
|
||||
{
|
||||
s_the = this;
|
||||
}
|
||||
|
||||
NullDevice::~NullDevice()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue