mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibWeb: Use StringView instead of String in SVG::AttributeParser
This saves copying the string data, since the AttributeParser is always temporary.
This commit is contained in:
parent
2fad940b0b
commit
ab440b3e50
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace Web::SVG {
|
||||
|
||||
AttributeParser::AttributeParser(String source)
|
||||
AttributeParser::AttributeParser(StringView source)
|
||||
: m_source(move(source))
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue