mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user