summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibMarkdown/Heading.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-01-26 18:58:09 +0000
committerLinus Groh <mail@linusgroh.de>2023-01-27 20:38:49 +0000
commit6e7459322d8336bfe52e390ab4a1b2e82e24c05e (patch)
tree6da4b3a89764a22a1c62eabfa5fc5ee954519c41 /Userland/Libraries/LibMarkdown/Heading.cpp
parentda81041e97d0fc7d37a985ce6ca4ded19ce2cdd1 (diff)
downloadserenity-6e7459322d8336bfe52e390ab4a1b2e82e24c05e.zip
AK: Remove StringBuilder::build() in favor of to_deprecated_string()
Having an alias function that only wraps another one is silly, and keeping the more obvious name should flush out more uses of deprecated strings. No behavior change.
Diffstat (limited to 'Userland/Libraries/LibMarkdown/Heading.cpp')
-rw-r--r--Userland/Libraries/LibMarkdown/Heading.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibMarkdown/Heading.cpp b/Userland/Libraries/LibMarkdown/Heading.cpp
index e31db29959..1e2b0c3121 100644
--- a/Userland/Libraries/LibMarkdown/Heading.cpp
+++ b/Userland/Libraries/LibMarkdown/Heading.cpp
@@ -32,7 +32,7 @@ Vector<DeprecatedString> Heading::render_lines_for_terminal(size_t) const
break;
}
- return Vector<DeprecatedString> { builder.build() };
+ return Vector<DeprecatedString> { builder.to_deprecated_string() };
}
RecursionDecision Heading::walk(Visitor& visitor) const