From b3e76bf866b4223390585589786600475c9fdcae Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 15 Mar 2024 08:03:35 +0100 Subject: API: Inconsitency fix. Signed-off-by: Amlal El Mahrouss --- Public/Kits/System.Zip/Zip.cxx | 10 +++++----- Public/Kits/System.Zip/Zip.hpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'Public/Kits/System.Zip') diff --git a/Public/Kits/System.Zip/Zip.cxx b/Public/Kits/System.Zip/Zip.cxx index 81a39a18..39818da7 100644 --- a/Public/Kits/System.Zip/Zip.cxx +++ b/Public/Kits/System.Zip/Zip.cxx @@ -14,18 +14,18 @@ namespace System::Zip { ZipStream::ZipStream() - : fSharedData(HHeap::Shared()->New(kInitialSz, kHeapExpandable)), + : fSharedData(System::Heap::Shared()->New(kInitialSz, kHeapExpandable)), fSharedSz(kInitialSz) {} ZipStream::~ZipStream() noexcept { - if (fSharedData) HHeap::Shared()->Delete(fSharedData); + if (fSharedData) System::Heap::Shared()->Delete(fSharedData); } -HFilePtr ZipStream::FlushToFile(const char *name) { - HFilePtr fp = new HFile(name); +FilePtr ZipStream::FlushToFile(const char *name) { + FilePtr fp = new File(name); CA_MUST_PASS(fp); - this->fSharedSz = HHeap::Shared()->Size(this->fSharedData); + this->fSharedSz = System::Heap::Shared()->Size(this->fSharedData); fp->MIME(kZipKitMime); fp->Write(this->fSharedData, this->fSharedSz); diff --git a/Public/Kits/System.Zip/Zip.hpp b/Public/Kits/System.Zip/Zip.hpp index 490fb27c..7affe917 100644 --- a/Public/Kits/System.Zip/Zip.hpp +++ b/Public/Kits/System.Zip/Zip.hpp @@ -11,7 +11,7 @@ #define Z_SOLO 1 -#include +#include #include #include @@ -27,7 +27,7 @@ class ZipStream final { HCORE_COPY_DEFAULT(ZipStream); public: - HFilePtr FlushToFile(const char *name); + FilePtr FlushToFile(const char *name); void *Deflate(const char *name); void Inflate(const char *name, void *data); -- cgit v1.2.3