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/ErrorOr.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/CompilerKit/ErrorOr.h') diff --git a/src/CompilerKit/ErrorOr.h b/src/CompilerKit/ErrorOr.h index 9e1e801..9ab86fb 100644 --- a/src/CompilerKit/ErrorOr.h +++ b/src/CompilerKit/ErrorOr.h @@ -30,17 +30,17 @@ class ErrorOr final { public: explicit ErrorOr(ErrorT err) : mId(err) {} - explicit ErrorOr(nullPtr null) {} + explicit ErrorOr(std::nullptr_t null) {} explicit ErrorOr(T klass) : mRef(klass) {} ErrorOr& operator=(const ErrorOr&) = default; ErrorOr(const ErrorOr&) = default; - Ref Leak() { return mRef; } + Ref& Leak() { return mRef; } ErrorT Error() { return mId; } - Bool HasError() { return mId != NECTI_SUCCESS; } + bool HasError() { return mId != NECTI_SUCCESS; } explicit operator bool() { return mRef; } -- cgit v1.2.3