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:
Alex Birch
2019-06-22 20:41:38 +01:00
parent d22c2cd4fa
commit 9ee566b251
1140 changed files with 67534 additions and 105952 deletions

View File

@ -27,18 +27,6 @@
namespace juce
{
AffineTransform::AffineTransform() noexcept
: mat00 (1.0f), mat01 (0), mat02 (0),
mat10 (0), mat11 (1.0f), mat12 (0)
{
}
AffineTransform::AffineTransform (const AffineTransform& other) noexcept
: mat00 (other.mat00), mat01 (other.mat01), mat02 (other.mat02),
mat10 (other.mat10), mat11 (other.mat11), mat12 (other.mat12)
{
}
AffineTransform::AffineTransform (float m00, float m01, float m02,
float m10, float m11, float m12) noexcept
: mat00 (m00), mat01 (m01), mat02 (m02),
@ -46,18 +34,6 @@ AffineTransform::AffineTransform (float m00, float m01, float m02,
{
}
AffineTransform& AffineTransform::operator= (const AffineTransform& other) noexcept
{
mat00 = other.mat00;
mat01 = other.mat01;
mat02 = other.mat02;
mat10 = other.mat10;
mat11 = other.mat11;
mat12 = other.mat12;
return *this;
}
bool AffineTransform::operator== (const AffineTransform& other) const noexcept
{
return mat00 == other.mat00
@ -84,7 +60,7 @@ bool AffineTransform::isIdentity() const noexcept
&& mat11 == 1.0f;
}
JUCE_DECLARE_DEPRECATED_STATIC (const AffineTransform AffineTransform::identity;)
JUCE_DECLARE_DEPRECATED_STATIC (const AffineTransform AffineTransform::identity (1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f);)
//==============================================================================
AffineTransform AffineTransform::followedBy (const AffineTransform& other) const noexcept

View File

@ -45,10 +45,10 @@ class JUCE_API AffineTransform final
public:
//==============================================================================
/** Creates an identity transform. */
AffineTransform() noexcept;
AffineTransform() = default;
/** Creates a copy of another transform. */
AffineTransform (const AffineTransform& other) noexcept;
AffineTransform (const AffineTransform&) = default;
/** Creates a transform from a set of raw matrix values.
@ -62,7 +62,7 @@ public:
float mat10, float mat11, float mat12) noexcept;
/** Copies from another AffineTransform object */
AffineTransform& operator= (const AffineTransform& other) noexcept;
AffineTransform& operator= (const AffineTransform&) = default;
/** Compares two transforms. */
bool operator== (const AffineTransform& other) const noexcept;
@ -282,8 +282,8 @@ public:
(mat10 mat11 mat12)
( 0 0 1 )
*/
float mat00, mat01, mat02;
float mat10, mat11, mat12;
float mat00 { 1.0f }, mat01 { 0.0f }, mat02 { 0.0f };
float mat10 { 0.0f }, mat11 { 1.0f }, mat12 { 0.0f };
};
} // namespace juce

View File

@ -46,16 +46,10 @@ public:
/** Creates a null border.
All sizes are left as 0.
*/
BorderSize() noexcept
: top(), left(), bottom(), right()
{
}
BorderSize() = default;
/** Creates a copy of another border. */
BorderSize (const BorderSize& other) noexcept
: top (other.top), left (other.left), bottom (other.bottom), right (other.right)
{
}
BorderSize (const BorderSize&) = default;
/** Creates a border with the given gaps. */
BorderSize (ValueType topGap, ValueType leftGap, ValueType bottomGap, ValueType rightGap) noexcept
@ -73,13 +67,13 @@ public:
/** Returns the gap that should be left at the top of the region. */
ValueType getTop() const noexcept { return top; }
/** Returns the gap that should be left at the top of the region. */
/** Returns the gap that should be left at the left of the region. */
ValueType getLeft() const noexcept { return left; }
/** Returns the gap that should be left at the top of the region. */
/** Returns the gap that should be left at the bottom of the region. */
ValueType getBottom() const noexcept { return bottom; }
/** Returns the gap that should be left at the top of the region. */
/** Returns the gap that should be left at the right of the region. */
ValueType getRight() const noexcept { return right; }
/** Returns the sum of the top and bottom gaps. */
@ -149,7 +143,7 @@ public:
private:
//==============================================================================
ValueType top, left, bottom, right;
ValueType top{}, left{}, bottom{}, right{};
};
} // namespace juce

View File

@ -49,13 +49,10 @@ class Line
public:
//==============================================================================
/** Creates a line, using (0, 0) as its start and end points. */
Line() noexcept {}
Line() = default;
/** Creates a copy of another line. */
Line (const Line& other) noexcept
: start (other.start), end (other.end)
{
}
Line (const Line&) = default;
/** Creates a line based on the coordinates of its start and end points. */
Line (ValueType startX, ValueType startY, ValueType endX, ValueType endY) noexcept
@ -70,15 +67,10 @@ public:
}
/** Copies a line from another one. */
Line& operator= (const Line& other) noexcept
{
start = other.start;
end = other.end;
return *this;
}
Line& operator= (const Line&) = default;
/** Destructor. */
~Line() noexcept {}
~Line() = default;
//==============================================================================
/** Returns the x coordinate of the line's start point. */
@ -186,7 +178,7 @@ public:
the intersection (if the lines intersect). If the lines
are parallel, this will just be set to the position
of one of the line's endpoints.
@returns true if the line segments intersect; false if they dont. Even if they
@returns true if the line segments intersect; false if they don't. Even if they
don't intersect, the intersection coordinates returned will still
be valid
*/

View File

@ -41,15 +41,10 @@ public:
//==============================================================================
/** Creates a parallelogram with zero size at the origin.
*/
Parallelogram() noexcept
{
}
Parallelogram() = default;
/** Creates a copy of another parallelogram. */
Parallelogram (const Parallelogram& other) noexcept
: topLeft (other.topLeft), topRight (other.topRight), bottomLeft (other.bottomLeft)
{
}
Parallelogram (const Parallelogram&) = default;
/** Creates a parallelogram based on 3 points. */
Parallelogram (Point<ValueType> topLeftPosition,
@ -67,16 +62,10 @@ public:
{
}
Parallelogram& operator= (const Parallelogram& other) noexcept
{
topLeft = other.topLeft;
topRight = other.topRight;
bottomLeft = other.bottomLeft;
return *this;
}
Parallelogram& operator= (const Parallelogram&) = default;
/** Destructor. */
~Parallelogram() noexcept {}
~Parallelogram() = default;
//==============================================================================
/** Returns true if the parallelogram has a width or height of more than zero. */

View File

@ -132,7 +132,7 @@ Path& Path::operator= (const Path& other)
}
Path::Path (Path&& other) noexcept
: data (static_cast<Array<float>&&> (other.data)),
: data (std::move (other.data)),
bounds (other.bounds),
useNonZeroWinding (other.useNonZeroWinding)
{
@ -140,7 +140,7 @@ Path::Path (Path&& other) noexcept
Path& Path::operator= (Path&& other) noexcept
{
data = static_cast<Array<float>&&> (other.data);
data = std::move (other.data);
bounds = other.bounds;
useNonZeroWinding = other.useNonZeroWinding;
return *this;
@ -674,8 +674,8 @@ void Path::addBubble (Rectangle<float> bodyArea,
startNewSubPath (bodyArea.getX() + cornerSizeW, bodyArea.getY());
const Rectangle<float> targetLimit (bodyArea.reduced (jmin (halfW - 1.0f, cornerSizeW + arrowBaseWidth),
jmin (halfH - 1.0f, cornerSizeH + arrowBaseWidth)));
auto targetLimit = bodyArea.reduced (jmin (halfW - 1.0f, cornerSizeW + arrowBaseWidth),
jmin (halfH - 1.0f, cornerSizeH + arrowBaseWidth));
if (Rectangle<float> (targetLimit.getX(), maximumArea.getY(),
targetLimit.getWidth(), bodyArea.getY() - maximumArea.getY()).contains (arrowTip))

View File

@ -654,10 +654,10 @@ namespace PathStrokeHelpers
}
void PathStrokeType::createStrokedPath (Path& destPath, const Path& sourcePath,
const AffineTransform& transform, const float extraAccuracy) const
const AffineTransform& transform, float extraAccuracy) const
{
PathStrokeHelpers::createStroke (thickness, jointStyle, endStyle, destPath, sourcePath,
transform, extraAccuracy, 0);
transform, extraAccuracy, nullptr);
}
void PathStrokeType::createDashedStroke (Path& destPath,
@ -665,7 +665,7 @@ void PathStrokeType::createDashedStroke (Path& destPath,
const float* dashLengths,
int numDashLengths,
const AffineTransform& transform,
const float extraAccuracy) const
float extraAccuracy) const
{
jassert (extraAccuracy > 0);

View File

@ -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. */

View File

@ -43,16 +43,10 @@ public:
/** Creates a rectangle of zero size.
The default coordinates will be (0, 0, 0, 0).
*/
Rectangle() noexcept
: w(), h()
{
}
Rectangle() = default;
/** Creates a copy of another rectangle. */
Rectangle (const Rectangle& other) noexcept
: pos (other.pos), w (other.w), h (other.h)
{
}
Rectangle (const Rectangle&) = default;
/** Creates a rectangle with a given position and size. */
Rectangle (ValueType initialX, ValueType initialY,
@ -89,15 +83,11 @@ public:
return { left, top, right - left, bottom - top };
}
Rectangle& operator= (const Rectangle& other) noexcept
{
pos = other.pos;
w = other.w; h = other.h;
return *this;
}
/** Creates a copy of another rectangle. */
Rectangle& operator= (const Rectangle&) = default;
/** Destructor. */
~Rectangle() noexcept {}
~Rectangle() = default;
//==============================================================================
/** Returns true if the rectangle's width or height are zero or less */
@ -974,7 +964,7 @@ private:
template <typename OtherType> friend class Rectangle;
Point<ValueType> pos;
ValueType w, h;
ValueType w{}, h{};
static ValueType parseIntAfterSpace (StringRef s) noexcept
{ return static_cast<ValueType> (s.text.findEndOfWhitespace().getIntValue32()); }

View File

@ -43,11 +43,11 @@ template <typename ValueType>
class RectangleList final
{
public:
typedef Rectangle<ValueType> RectangleType;
using RectangleType = Rectangle<ValueType>;
//==============================================================================
/** Creates an empty RectangleList */
RectangleList() noexcept {}
RectangleList() = default;
/** Creates a copy of another list */
RectangleList (const RectangleList& other) : rects (other.rects)
@ -69,14 +69,14 @@ public:
/** Move constructor */
RectangleList (RectangleList&& other) noexcept
: rects (static_cast<Array<RectangleType>&&> (other.rects))
: rects (std::move (other.rects))
{
}
/** Move assignment operator */
RectangleList& operator= (RectangleList&& other) noexcept
{
rects = static_cast<Array<RectangleType>&&> (other.rects);
rects = std::move (other.rects);
return *this;
}
@ -194,7 +194,7 @@ public:
void add (const RectangleList& other)
{
for (auto& r : other)
add (*r);
add (r);
}
/** Removes a rectangular region from the list.