From e80b274a23cb6bbe83bc48058c779624b16dd556 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 7 May 2024 14:46:11 +0200 Subject: MHR-23: ErrorID error codes are now deprecated in favor of HError. - Cleanup done in SystemLib. - Refactor system API. Signed-off-by: Amlal El Mahrouss --- Private/Source/FileManager.cxx | 1 - Private/Source/PEFCodeManager.cxx | 3 +-- Private/Source/Timer.cxx | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'Private/Source') diff --git a/Private/Source/FileManager.cxx b/Private/Source/FileManager.cxx index 58330c9b..5f6ed174 100644 --- a/Private/Source/FileManager.cxx +++ b/Private/Source/FileManager.cxx @@ -5,7 +5,6 @@ ------------------------------------------- */ #include -#include #include /// BUGS: 0 diff --git a/Private/Source/PEFCodeManager.cxx b/Private/Source/PEFCodeManager.cxx index 356cd992..a3afbd52 100644 --- a/Private/Source/PEFCodeManager.cxx +++ b/Private/Source/PEFCodeManager.cxx @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -172,7 +171,7 @@ namespace NewOS if (auto sym = this->FindSymbol(kPefStart, kPefCode); sym) return ErrorOr(sym); - return ErrorOr(H_EXEC_ERROR); + return ErrorOr(kErrorExecutable); } /// @brief Tells if the executable is loaded or not. diff --git a/Private/Source/Timer.cxx b/Private/Source/Timer.cxx index da80db1e..962b3367 100644 --- a/Private/Source/Timer.cxx +++ b/Private/Source/Timer.cxx @@ -14,7 +14,7 @@ using namespace NewOS; /// @brief Unimplemented as it is an interface. Int32 HardwareTimerInterface::Wait() noexcept { - return H_UNIMPLEMENTED; + return kErrorUnimplemented; } /// @brief HardwareTimer class, meant to be generic. -- cgit v1.2.3