diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-27 08:56:24 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-27 08:56:24 +0100 |
| commit | a936410849e4df5598d9edb11132153a4f7e64f6 (patch) | |
| tree | 5654054528b3d00d97ad1933b8220dab749658e0 /include/CompilerKit/ErrorOr.h | |
| parent | d532b43153cb68d6e92c5dac58cbd3c8ab4f60af (diff) | |
cl! giant source code refactor.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/CompilerKit/ErrorOr.h')
| -rw-r--r-- | include/CompilerKit/ErrorOr.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/include/CompilerKit/ErrorOr.h b/include/CompilerKit/ErrorOr.h index 7891c4e..d71d93e 100644 --- a/include/CompilerKit/ErrorOr.h +++ b/include/CompilerKit/ErrorOr.h @@ -1,11 +1,7 @@ -/* - * ======================================================== - * - * CompilerKit - * Copyright (C) 2024-2025 Amlal El Mahrouss, licensed under the Apache 2.0 license. - * - * ======================================================== - */ +// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Licensed under the Apache License, Version 2.0 (See accompanying +// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0) +// Official repository: https://github.com/nekernel-org/nectar #ifndef NECTAR_COMPILERKIT_ERROROR_H #define NECTAR_COMPILERKIT_ERROROR_H @@ -30,9 +26,9 @@ class ErrorOr final { ~ErrorOr() = default; public: - using RefType = StrongRef<T>; + using RefType = StrongRef<T>; using Reference = T&; - using Ptr = T*; + using Ptr = T*; explicit ErrorOr(ErrorT err) : mId(err) {} explicit ErrorOr(std::nullptr_t null) {} @@ -59,4 +55,3 @@ using ErrorOrString = ErrorOr<STLString>; } // namespace CompilerKit #endif // NECTAR_COMPILERKIT_ERROROR_H - |
