mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 06:20:53 +03:00
Update AllocRoutines.h
This commit is contained in:
@@ -30,15 +30,15 @@ FLATLAF_WIN32_ALLOC_INLINE void* operator new(size_t cb, const NoThrowingWin32He
|
|||||||
return AllocateUsingProcessHeap(cb);
|
return AllocateUsingProcessHeap(cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void* operator new[](size_t cb, const NoThrowingWin32HeapAllocT& tag) noexcept {
|
FLATLAF_WIN32_ALLOC_INLINE void* operator new[](size_t cb, const NoThrowingWin32HeapAllocT& tag) noexcept {
|
||||||
return AllocateUsingProcessHeap(cb);
|
return AllocateUsingProcessHeap(cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void operator delete(void* pv, const NoThrowingWin32HeapAllocT& tag) noexcept {
|
FLATLAF_WIN32_ALLOC_INLINE void operator delete(void* pv, const NoThrowingWin32HeapAllocT& tag) noexcept {
|
||||||
DeleteFromProcessHeap(pv);
|
DeleteFromProcessHeap(pv);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void operator delete[](void* pv, const NoThrowingWin32HeapAllocT& tag) noexcept {
|
FLATLAF_WIN32_ALLOC_INLINE void operator delete[](void* pv, const NoThrowingWin32HeapAllocT& tag) noexcept {
|
||||||
DeleteFromProcessHeap(pv);
|
DeleteFromProcessHeap(pv);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user