From 89b4e134239b4563277b0e449de0bb32ed684b0b Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 14 Dec 2017 14:14:57 +0000 Subject: [PATCH] Fixed some incorrect documentation in the singleton macros --- modules/juce_core/memory/juce_Singleton.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/juce_core/memory/juce_Singleton.h b/modules/juce_core/memory/juce_Singleton.h index d3900b85e4..1136197308 100644 --- a/modules/juce_core/memory/juce_Singleton.h +++ b/modules/juce_core/memory/juce_Singleton.h @@ -247,14 +247,11 @@ struct SingletonHolder : private MutexType // (inherited so we can use the empt version of a singleton, where you're using it in very straightforward circumstances and don't need the extra checking. - Just use the normal JUCE_IMPLEMENT_SINGLETON_SINGLETHREADED as the counterpart - to this declaration, as you would with JUCE_DECLARE_SINGLETON_SINGLETHREADED. - See the documentation for JUCE_DECLARE_SINGLETON for more information about - how to use it, the only difference being that you have to use - JUCE_IMPLEMENT_SINGLETON_SINGLETHREADED instead of JUCE_IMPLEMENT_SINGLETON. + how to use it. Just like JUCE_DECLARE_SINGLETON you need to also have a + corresponding JUCE_IMPLEMENT_SINGLETON statement somewhere in your code. - @see JUCE_IMPLEMENT_SINGLETON_SINGLETHREADED, JUCE_DECLARE_SINGLETON + @see JUCE_IMPLEMENT_SINGLETON, JUCE_DECLARE_SINGLETON */ #define JUCE_DECLARE_SINGLETON_SINGLETHREADED_MINIMAL(Classname) \ \