diff options
author | MacDue <macdue@dueutil.tech> | 2023-02-05 19:02:54 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-08 19:15:45 +0000 |
commit | 63b11030f03e5a0fd06d9c8cfa788da0388096d8 (patch) | |
tree | 3ea0fa1e751683b643c71da95b6ecf98a97508cf /Userland/Libraries/LibWeb/SVG | |
parent | 1c92e6ee9d1f686f20f37445150d63ae474b7e9b (diff) | |
download | serenity-63b11030f03e5a0fd06d9c8cfa788da0388096d8.zip |
Everywhere: Use ReadonlySpan<T> instead of Span<T const>
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG')
-rw-r--r-- | Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/SVG/SVGPathElement.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp index d542dc0ff7..d516f8486d 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp @@ -107,7 +107,7 @@ void SVGPathElement::parse_attribute(DeprecatedFlyString const& name, Deprecated } } -Gfx::Path path_from_path_instructions(Span<PathInstruction const> instructions) +Gfx::Path path_from_path_instructions(ReadonlySpan<PathInstruction> instructions) { Gfx::Path path; Optional<Gfx::FloatPoint> previous_control_point; diff --git a/Userland/Libraries/LibWeb/SVG/SVGPathElement.h b/Userland/Libraries/LibWeb/SVG/SVGPathElement.h index ab1df776c3..b6b61f502b 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGPathElement.h +++ b/Userland/Libraries/LibWeb/SVG/SVGPathElement.h @@ -32,6 +32,6 @@ private: Optional<Gfx::Path> m_path; }; -Gfx::Path path_from_path_instructions(Span<PathInstruction const>); +Gfx::Path path_from_path_instructions(ReadonlySpan<PathInstruction>); } |