|
|
|
@@ -274,17 +274,15 @@ public: |
|
|
|
*/
|
|
|
|
static var readFromStream (InputStream& input);
|
|
|
|
|
|
|
|
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
|
|
|
/** This was a static empty var object, but is now deprecated as it's too easy to accidentally
|
|
|
|
use it indirectly during a static constructor, leading to hard-to-find order-of-initialisation
|
|
|
|
problems.
|
|
|
|
@deprecated If you need a default-constructed var, just use var() or {}.
|
|
|
|
The only time you might miss having var::null available might be if you need to return an
|
|
|
|
empty var from a function by reference, but if you need to do that, it's easy enough to use
|
|
|
|
a function-local static var and return that, avoiding any order-of-initialisation issues.
|
|
|
|
/* This was a static empty var object, but is now deprecated as it's too easy to accidentally
|
|
|
|
use it indirectly during a static constructor, leading to hard-to-find order-of-initialisation
|
|
|
|
problems.
|
|
|
|
@deprecated If you need a default-constructed var, just use var() or {}.
|
|
|
|
The only time you might miss having var::null available might be if you need to return an
|
|
|
|
empty var from a function by reference, but if you need to do that, it's easy enough to use
|
|
|
|
a function-local static var and return that, avoiding any order-of-initialisation issues.
|
|
|
|
*/
|
|
|
|
static const var null;
|
|
|
|
#endif
|
|
|
|
JUCE_DEPRECATED_STATIC (static const var null);
|
|
|
|
|
|
|
|
private:
|
|
|
|
//==============================================================================
|
|
|
|
|