summaryrefslogtreecommitdiffhomepage
path: root/Private/Source
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-05-07 14:46:11 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-05-07 14:47:44 +0200
commite80b274a23cb6bbe83bc48058c779624b16dd556 (patch)
tree905578ee29d9c5bad03b28b8381a2c29fb715f0f /Private/Source
parentc4f3bfd671ad8ec5721c3d2c45de4806f34ebb75 (diff)
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 <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/Source')
-rw-r--r--Private/Source/FileManager.cxx1
-rw-r--r--Private/Source/PEFCodeManager.cxx3
-rw-r--r--Private/Source/Timer.cxx2
3 files changed, 2 insertions, 4 deletions
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 <KernelKit/FileManager.hpp>
-#include <NewKit/ErrorID.hpp>
#include <NewKit/Utils.hpp>
/// 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 <KernelKit/PEFCodeManager.hxx>
#include <KernelKit/ProcessScheduler.hpp>
#include <NewKit/Defines.hpp>
-#include <NewKit/ErrorID.hpp>
#include <NewKit/KernelCheck.hpp>
#include <NewKit/OwnPtr.hpp>
#include <NewKit/String.hpp>
@@ -172,7 +171,7 @@ namespace NewOS
if (auto sym = this->FindSymbol(kPefStart, kPefCode); sym)
return ErrorOr<VoidPtr>(sym);
- return ErrorOr<VoidPtr>(H_EXEC_ERROR);
+ return ErrorOr<VoidPtr>(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.