1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

LibMarkdown: Make href always a String

This already was the case in some sense, but made it very inconvenient
to access it.
This commit is contained in:
Ben Wiederhake 2021-10-03 21:39:34 +02:00 committed by Brian Gianforcaro
parent 597379e864
commit aca01932bd
2 changed files with 10 additions and 14 deletions

View file

@ -88,9 +88,9 @@ public:
public:
bool is_image;
NonnullOwnPtr<Node> text;
NonnullOwnPtr<Node> href;
String href;
LinkNode(bool is_image, NonnullOwnPtr<Node> text, NonnullOwnPtr<Node> href)
LinkNode(bool is_image, NonnullOwnPtr<Node> text, String href)
: is_image(is_image)
, text(move(text))
, href(move(href))