diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-02 15:47:44 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-02 15:49:18 -0500 |
| commit | bcc6100941117dc84fb9ece3812da340d96c61a6 (patch) | |
| tree | d27a97e5a4a8cfa6bfdb3688c2be0183f69e3fbd /src/CompilerKit/Ref.h | |
| parent | f7930b3a1279922cf9e6e75e651fe9b5df247bc6 (diff) | |
chore! reworked source code to exclude `Bool`, `Boolean`, and `nullPtr` macros.
fix: ErrorOr: Return `Ref<T>&` when using Leak.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/CompilerKit/Ref.h')
| -rw-r--r-- | src/CompilerKit/Ref.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
