From cf79cc4724c61838c04760facdbfb17cad8b683e Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 22 Jul 2021 14:57:45 +0100 Subject: [PATCH] Whitespace --- modules/juce_core/memory/juce_Memory.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/juce_core/memory/juce_Memory.h b/modules/juce_core/memory/juce_Memory.h index 0f21a5a8da..2a5fb1875b 100644 --- a/modules/juce_core/memory/juce_Memory.h +++ b/modules/juce_core/memory/juce_Memory.h @@ -183,18 +183,18 @@ inline const Type* addBytesToPointer (const Type* basePointer, IntegerType bytes #define juce_UseDebuggingNewOperator #endif - /** Converts an owning raw pointer into a unique_ptr, deriving the - type of the unique_ptr automatically. +/** Converts an owning raw pointer into a unique_ptr, deriving the + type of the unique_ptr automatically. - This should only be used with pointers to single objects. - Do NOT pass a pointer to an array to this function, as the - destructor of the unique_ptr will incorrectly call `delete` - instead of `delete[]` on the pointer. - */ - template - std::unique_ptr rawToUniquePtr (T* ptr) - { - return std::unique_ptr (ptr); - } + This should only be used with pointers to single objects. + Do NOT pass a pointer to an array to this function, as the + destructor of the unique_ptr will incorrectly call `delete` + instead of `delete[]` on the pointer. +*/ +template +std::unique_ptr rawToUniquePtr (T* ptr) +{ + return std::unique_ptr (ptr); +} } // namespace juce