From 32e071ab89962a86ee80f1f7732fcd4a55f9725d Mon Sep 17 00:00:00 2001 From: John Platts Date: Mon, 19 Sep 2022 13:36:10 -0500 Subject: [PATCH] Update AllocRoutines.h --- .../flatlaf-natives-windows/src/main/cpp/AllocRoutines.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flatlaf-natives/flatlaf-natives-windows/src/main/cpp/AllocRoutines.h b/flatlaf-natives/flatlaf-natives-windows/src/main/cpp/AllocRoutines.h index f4a8f0fc..82185260 100644 --- a/flatlaf-natives/flatlaf-natives-windows/src/main/cpp/AllocRoutines.h +++ b/flatlaf-natives/flatlaf-natives-windows/src/main/cpp/AllocRoutines.h @@ -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