mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibXML+LibWeb: Avoid implicit cast from StringView{}->DeprecatedString
This produces a (truly) null DeprecatedString, which is not expected to occur by CharacterData (where this string ends up). Simply pass an "empty" DeprecatedString manually instead.
This commit is contained in:
committed by
Andreas Kling
parent
356e58332c
commit
803ff81d4a
Notes:
sideshowbarker
2024-07-17 10:54:57 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/803ff81d4a Pull-request: https://github.com/SerenityOS/serenity/pull/16902
@@ -32,8 +32,8 @@ private:
|
||||
virtual void set_source(DeprecatedString) override;
|
||||
virtual void element_start(XML::Name const& name, HashMap<XML::Name, DeprecatedString> const& attributes) override;
|
||||
virtual void element_end(XML::Name const& name) override;
|
||||
virtual void text(DeprecatedString const& data) override;
|
||||
virtual void comment(DeprecatedString const& data) override;
|
||||
virtual void text(StringView data) override;
|
||||
virtual void comment(StringView data) override;
|
||||
virtual void document_end() override;
|
||||
|
||||
DOM::Document& m_document;
|
||||
|
||||
Reference in New Issue
Block a user