summaryrefslogtreecommitdiffhomepage
path: root/dev/CompilerKit/ErrorOr.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-10-26 15:57:05 +0100
committerGitHub <noreply@github.com>2025-10-26 15:57:05 +0100
commitf0ee6dc640d1d1f00c40bc2f58e9d6a8fd94bd2b (patch)
treea027f8e50202351d94f4a0c8b7f1c09472ab8a8a /dev/CompilerKit/ErrorOr.h
parent283d25d583a62aa9e56a2af412a7074e31db3069 (diff)
parentf3c153a465c156635584006a83fc8f3f37d20861 (diff)
Merge pull request #15 from 2LoS/dev
'operator bool()' is marked as explicit
Diffstat (limited to 'dev/CompilerKit/ErrorOr.h')
-rw-r--r--dev/CompilerKit/ErrorOr.h4
1 files changed, 2 insertions, 2 deletions
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<T> mRef;