mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
AK: In Userspace.h, #if defined(KERNEL) => #ifdef KERNEL
This commit is contained in:
parent
5bf994d2d9
commit
6c1ba09fbd
Notes:
sideshowbarker
2024-07-19 04:24:46 +09:00
Author: https://github.com/emanuele6
Commit: 6c1ba09fbd
Pull-request: https://github.com/SerenityOS/serenity/pull/2937
Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ public:
|
|||
operator bool() const { return m_ptr; }
|
||||
operator FlatPtr() const { return (FlatPtr)m_ptr; }
|
||||
|
||||
#if defined(KERNEL)
|
||||
#ifdef KERNEL
|
||||
Userspace(FlatPtr ptr)
|
||||
: m_ptr(ptr)
|
||||
{
|
||||
|
@ -60,7 +60,7 @@ public:
|
|||
#endif
|
||||
|
||||
private:
|
||||
#if defined(KERNEL)
|
||||
#ifdef KERNEL
|
||||
FlatPtr m_ptr { 0 };
|
||||
#else
|
||||
T m_ptr { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue