From bcc6100941117dc84fb9ece3812da340d96c61a6 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 2 Dec 2025 15:47:44 -0500 Subject: chore! reworked source code to exclude `Bool`, `Boolean`, and `nullPtr` macros. fix: ErrorOr: Return `Ref&` when using Leak. Signed-off-by: Amlal El Mahrouss --- src/CompilerKit/Ref.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/CompilerKit/Ref.h') diff --git a/src/CompilerKit/Ref.h b/src/CompilerKit/Ref.h index 703fde8..58e5ffd 100644 --- a/src/CompilerKit/Ref.h +++ b/src/CompilerKit/Ref.h @@ -31,7 +31,7 @@ class Ref final { NECTI_COPY_DEFAULT(Ref); public: - explicit Ref(T* cls, const Bool& strong = false) : m_Class(cls), m_Strong(strong) {} + explicit Ref(T* cls, const bool& strong = false) : m_Class(cls), m_Strong(strong) {} Ref& operator=(T ref) { *m_Class = ref; @@ -45,13 +45,13 @@ class Ref final { T operator*() { return *m_Class; } - Bool IsStrong() const { return m_Strong; } + bool IsStrong() const { return m_Strong; } explicit operator bool() { return *m_Class; } private: T* m_Class{nullptr}; - Bool m_Strong{false}; + bool m_Strong{false}; }; // @author Amlal El Mahrouss -- cgit v1.2.3