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

Path: Allow addPath to take a reference to self

This commit is contained in:
reuk 2023-02-07 17:07:42 +00:00
parent 8d87c8c6c3
commit cb14aa983d
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -726,10 +726,11 @@ void Path::addBubble (Rectangle<float> bodyArea,
void Path::addPath (const Path& other) void Path::addPath (const Path& other)
{ {
const auto* d = other.data.begin(); const auto* d = other.data.begin();
const auto size = other.data.size();
for (int i = 0; i < other.data.size();) for (int i = 0; i < size;)
{ {
auto type = d[i++]; const auto type = d[i++];
if (isMarker (type, moveMarker)) if (isMarker (type, moveMarker))
{ {