summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Core/HeapAPI.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Public/Kits/System.Core/HeapAPI.cxx')
-rw-r--r--Public/Kits/System.Core/HeapAPI.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/Public/Kits/System.Core/HeapAPI.cxx b/Public/Kits/System.Core/HeapAPI.cxx
index 2dc7338b..232b4927 100644
--- a/Public/Kits/System.Core/HeapAPI.cxx
+++ b/Public/Kits/System.Core/HeapAPI.cxx
@@ -8,28 +8,29 @@
#include <System.Core/hcore.h>
using namespace HCore;
+using namespace System;
STATIC HcObjectPtr kObjectHeap;
-HHeap* HHeap::Shared() noexcept {
- static HHeap* heap = nullptr;
+Heap* Heap::Shared() noexcept {
+ static Heap* heap = nullptr;
if (!heap) {
- heap = new HHeap();
+ heap = new Heap();
kObjectHeap = HcGetProcessHeap();
}
return heap;
}
-void HHeap::Delete(HHeapPtr me) noexcept { HcFreeProcessHeap(kObjectHeap, me); }
+void Heap::Delete(HeapPtr me) noexcept { HcFreeProcessHeap(kObjectHeap, me); }
-SizeT HHeap::Size(HHeapPtr me) noexcept {
+SizeT Heap::Size(HeapPtr me) noexcept {
CA_MUST_PASS(me);
return HcProcessHeapSize(kObjectHeap, me);
}
-HHeapPtr HHeap::New(const SizeT &sz, const Int32 flags) {
+HeapPtr Heap::New(const SizeT &sz, const Int32 flags) {
SizeT _sz = sz;
if (!_sz) ++_sz;