From a4f908c4d3d0c8d5a3578bf81028986405e96937 Mon Sep 17 00:00:00 2001 From: Amlal Date: Tue, 23 Jul 2024 17:18:32 +0200 Subject: [MHR-36] Refactors and such. Signed-off-by: Amlal --- Kernel/Sources/FileManager.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Kernel/Sources/FileManager.cxx') diff --git a/Kernel/Sources/FileManager.cxx b/Kernel/Sources/FileManager.cxx index 6684ce0d..dcdced27 100644 --- a/Kernel/Sources/FileManager.cxx +++ b/Kernel/Sources/FileManager.cxx @@ -121,8 +121,8 @@ namespace Kernel NEWOS_UNUSED(flags); - if ((reinterpret_cast(node))->Kind == kNewFSCatalogKindFile) - fImpl->WriteCatalog(reinterpret_cast(node), data, size, + if ((reinterpret_cast(node))->Kind == kNewFSCatalogKindFile) + fImpl->WriteCatalog(reinterpret_cast(node), data, size, name); } @@ -139,8 +139,8 @@ namespace Kernel NEWOS_UNUSED(flags); - if ((reinterpret_cast(node))->Kind == kNewFSCatalogKindFile) - return fImpl->ReadCatalog(reinterpret_cast(node), sz, + if ((reinterpret_cast(node))->Kind == kNewFSCatalogKindFile) + return fImpl->ReadCatalog(reinterpret_cast(node), sz, name); return nullptr; @@ -157,7 +157,7 @@ namespace Kernel if (!node || off == 0) return false; - return fImpl->Seek(reinterpret_cast(node), off); + return fImpl->Seek(reinterpret_cast(node), off); } /// @brief Tell where the catalog is. @@ -170,7 +170,7 @@ namespace Kernel if (!node) return kNPos; - return fImpl->Tell(reinterpret_cast(node)); + return fImpl->Tell(reinterpret_cast(node)); } /// @brief Rewinds the catalog. -- cgit v1.2.3