From fce3a125be965842cb2a8bb028edf95cfad1efee Mon Sep 17 00:00:00 2001 From: 2LoS Date: Sun, 26 Oct 2025 14:57:33 +0100 Subject: 'operator bool()' is marked as explicit --- dev/CompilerKit/ErrorOr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/CompilerKit/ErrorOr.h') diff --git a/dev/CompilerKit/ErrorOr.h b/dev/CompilerKit/ErrorOr.h index 218bec5..ef6cb84 100644 --- a/dev/CompilerKit/ErrorOr.h +++ b/dev/CompilerKit/ErrorOr.h @@ -36,9 +36,9 @@ class ErrorOr final { Int32 Error() { return mId; } - BOOL HasError() { return mId != NECTI_SUCCESS; } + Bool HasError() { return mId != NECTI_SUCCESS; } - operator bool() { return mRef; } + explicit operator bool() { return mRef; } private: Ref mRef; -- cgit v1.2.3