1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Marked as deprecated: String::empty, var::null, File::nonexistent, ValueTree::invalid and other problematic statically-initialised null values. Please just use the default constructor for these classes!

This commit is contained in:
jules 2018-05-08 14:19:00 +01:00
parent 2e51654958
commit 8c38c6f57f
14 changed files with 53 additions and 61 deletions

View file

@ -84,9 +84,7 @@ bool AffineTransform::isIdentity() const noexcept
&& mat11 == 1.0f;
}
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
const AffineTransform AffineTransform::identity;
#endif
JUCE_DECLARE_DEPRECATED_STATIC (const AffineTransform AffineTransform::identity);
//==============================================================================
AffineTransform AffineTransform::followedBy (const AffineTransform& other) const noexcept

View file

@ -270,12 +270,10 @@ public:
*/
float getScaleFactor() const noexcept;
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
/** A ready-to-use identity transform - now depracated.
@deprecated If you need an identity transform, just use AffineTransform() or {}.
/* A ready-to-use identity transform - now depracated.
@deprecated If you need an identity transform, just use AffineTransform() or {}.
*/
static const AffineTransform identity;
#endif
JUCE_DEPRECATED_STATIC (static const AffineTransform identity);
//==============================================================================
/* The transform matrix is: