summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Zip
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-15 08:03:35 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-15 08:03:35 +0100
commitb3e76bf866b4223390585589786600475c9fdcae (patch)
tree7b10c496e94aa98dedf441f67fb39d0aaa7fbda9 /Public/Kits/System.Zip
parent159d312c0dd3c02995950270e173cc10ade273cf (diff)
API: Inconsitency fix.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Kits/System.Zip')
-rw-r--r--Public/Kits/System.Zip/Zip.cxx10
-rw-r--r--Public/Kits/System.Zip/Zip.hpp4
2 files changed, 7 insertions, 7 deletions
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 <CompilerKit/CompilerKit.hpp>
+#include <CompilerKit/CompilerKit.hxx>
#include <System.Zip/Defines.hpp>
#include <System.Zip/zlib.hpp>
@@ -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);