summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-12 13:24:45 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-12 13:24:45 +0200
commitdc65f54c065364225f0113a9339af72735547779 (patch)
tree60a8b9d37c6236748bfa310a564150d688595183 /Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp
parent7e1bffdeb85c832c7cea1a71e2c9e9ebe7ff96ae (diff)
downloadserenity-dc65f54c065364225f0113a9339af72735547779.zip
AK: Rename Vector::append(Vector) => Vector::extend(Vector)
Let's make it a bit more clear when we're appending the elements from one vector to the end of another vector.
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp')
-rw-r--r--Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp
index b758bc867e..fb16b3383f 100644
--- a/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp
+++ b/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp
@@ -279,23 +279,23 @@ Vector<Vector<float>> PathDataParser::parse_coordinate_pair_sequence()
Vector<float> PathDataParser::parse_coordinate_pair_double()
{
Vector<float> coordinates;
- coordinates.append(parse_coordinate_pair());
+ coordinates.extend(parse_coordinate_pair());
if (match_comma_whitespace())
parse_comma_whitespace();
- coordinates.append(parse_coordinate_pair());
+ coordinates.extend(parse_coordinate_pair());
return coordinates;
}
Vector<float> PathDataParser::parse_coordinate_pair_triplet()
{
Vector<float> coordinates;
- coordinates.append(parse_coordinate_pair());
+ coordinates.extend(parse_coordinate_pair());
if (match_comma_whitespace())
parse_comma_whitespace();
- coordinates.append(parse_coordinate_pair());
+ coordinates.extend(parse_coordinate_pair());
if (match_comma_whitespace())
parse_comma_whitespace();
- coordinates.append(parse_coordinate_pair());
+ coordinates.extend(parse_coordinate_pair());
return coordinates;
}
@@ -316,7 +316,7 @@ Vector<float> PathDataParser::parse_elliptical_arg_argument()
numbers.append(parse_flag());
if (match_comma_whitespace())
parse_comma_whitespace();
- numbers.append(parse_coordinate_pair());
+ numbers.extend(parse_coordinate_pair());
return numbers;
}