summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/NeKit/Defines.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 15:01:34 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 15:01:34 -0500
commitceabd82ac8e796249feacf39c836034ed5e11c6d (patch)
treee446d471a0eaf4ed7ac67e878ce4fb02334a2acb /src/kernel/NeKit/Defines.h
parent0376382a848ef5ebbb0e02428c9d1df8a099d8b4 (diff)
chore: source code review and fixes.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/NeKit/Defines.h')
-rw-r--r--src/kernel/NeKit/Defines.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/NeKit/Defines.h b/src/kernel/NeKit/Defines.h
index 1a6a2cf6..e53616a9 100644
--- a/src/kernel/NeKit/Defines.h
+++ b/src/kernel/NeKit/Defines.h
@@ -127,7 +127,7 @@ class ICodec {
/// @param type (a1) the data.
/// @return a1 as Char*
template <typename T>
- const Char* AsBytes(T type) noexcept {
+ const Char* AsBytes(T type) {
NE_UNUSED(type);
return nullptr;
}
@@ -137,7 +137,7 @@ class ICodec {
/// @param type (a1) the data.
/// @return a1 as Char*
template <typename OutputClass, typename FactoryClass>
- OutputClass* Construct(Char* type) noexcept {
+ OutputClass* Construct(Char* type) {
FactoryClass class_fac;
return class_fac.template From<OutputClass>(type);
}
@@ -148,7 +148,7 @@ class ICodec {
/// @param type the class to cast.
/// @return the class as Y.
template <typename T, typename Y>
- Y As(T type) noexcept {
+ Y As(T type) {
if (type.template IsSerializable()) {
return reinterpret_cast<Char*>(type);
}