diff options
| author | 2LoS <kaffedesk@gmail.com> | 2025-10-26 14:57:33 +0100 |
|---|---|---|
| committer | 2LoS <kaffedesk@gmail.com> | 2025-10-26 14:57:33 +0100 |
| commit | fce3a125be965842cb2a8bb028edf95cfad1efee (patch) | |
| tree | c734aad162dd9bd509e10955b869ad3fb7743697 /dev/CompilerKit/ErrorOr.h | |
| parent | 283d25d583a62aa9e56a2af412a7074e31db3069 (diff) | |
'operator bool()' is marked as explicit
Diffstat (limited to 'dev/CompilerKit/ErrorOr.h')
| -rw-r--r-- | dev/CompilerKit/ErrorOr.h | 4 |
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; |
