diff --git a/modules/juce_core/memory/juce_HeapBlock.h b/modules/juce_core/memory/juce_HeapBlock.h index 93cc67d26003..f756410391c2 100644 --- a/modules/juce_core/memory/juce_HeapBlock.h +++ b/modules/juce_core/memory/juce_HeapBlock.h @@ -294,6 +294,8 @@ class HeapBlock data = nullptr; } +#ifndef JUCE_NO_DEPRECATED_HEAPBLOCK_METHODS + template [[deprecated]] void malloc(SizeType newNumElements, size_t elementSize = sizeof(ElementType)) { return jmalloc(newNumElements, elementSize); @@ -326,6 +328,8 @@ class HeapBlock jfree(); } +#endif + /** Swaps this object's data with the data of another HeapBlock. The two objects simply exchange their data pointers. */