upgrade to JUCE 5.4.3. Remove (probably) unused JUCE modules. Remove VST2 target (it's been end-of-life'd by Steinberg and by JUCE)
This commit is contained in:
@ -43,17 +43,17 @@ class Point
|
||||
{
|
||||
public:
|
||||
/** Creates a point at the origin */
|
||||
JUCE_CONSTEXPR Point() noexcept : x(), y() {}
|
||||
JUCE_CONSTEXPR Point() = default;
|
||||
|
||||
/** Creates a copy of another point. */
|
||||
JUCE_CONSTEXPR Point (const Point& other) noexcept : x (other.x), y (other.y) {}
|
||||
JUCE_CONSTEXPR Point (const Point&) = default;
|
||||
|
||||
/** Creates a point from an (x, y) position. */
|
||||
JUCE_CONSTEXPR Point (ValueType initialX, ValueType initialY) noexcept : x (initialX), y (initialY) {}
|
||||
|
||||
//==============================================================================
|
||||
/** Copies this point from another one. */
|
||||
Point& operator= (const Point& other) noexcept { x = other.x; y = other.y; return *this; }
|
||||
Point& operator= (const Point&) = default;
|
||||
|
||||
JUCE_CONSTEXPR inline bool operator== (Point other) const noexcept { return x == other.x && y == other.y; }
|
||||
JUCE_CONSTEXPR inline bool operator!= (Point other) const noexcept { return x != other.x || y != other.y; }
|
||||
@ -141,7 +141,7 @@ public:
|
||||
|
||||
//==============================================================================
|
||||
/** This type will be double if the Point's type is double, otherwise it will be float. */
|
||||
typedef typename TypeHelpers::SmallestFloatType<ValueType>::type FloatType;
|
||||
using FloatType = typename TypeHelpers::SmallestFloatType<ValueType>::type;
|
||||
|
||||
//==============================================================================
|
||||
/** Returns the straight-line distance between this point and the origin. */
|
||||
@ -234,8 +234,8 @@ public:
|
||||
String toString() const { return String (x) + ", " + String (y); }
|
||||
|
||||
//==============================================================================
|
||||
ValueType x; /**< The point's X coordinate. */
|
||||
ValueType y; /**< The point's Y coordinate. */
|
||||
ValueType x{}; /**< The point's X coordinate. */
|
||||
ValueType y{}; /**< The point's Y coordinate. */
|
||||
};
|
||||
|
||||
/** Multiplies the point's coordinates by a scalar value. */
|
||||
|
Reference in New Issue
Block a user