diff options
author | Linus Groh <mail@linusgroh.de> | 2023-01-26 18:58:09 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-27 20:38:49 +0000 |
commit | 6e7459322d8336bfe52e390ab4a1b2e82e24c05e (patch) | |
tree | 6da4b3a89764a22a1c62eabfa5fc5ee954519c41 /Userland/Libraries/LibMarkdown/Table.cpp | |
parent | da81041e97d0fc7d37a985ce6ca4ded19ce2cdd1 (diff) | |
download | serenity-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/Table.cpp')
-rw-r--r-- | Userland/Libraries/LibMarkdown/Table.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibMarkdown/Table.cpp b/Userland/Libraries/LibMarkdown/Table.cpp index d1f8b37aab..d526e7acff 100644 --- a/Userland/Libraries/LibMarkdown/Table.cpp +++ b/Userland/Libraries/LibMarkdown/Table.cpp @@ -44,12 +44,12 @@ Vector<DeprecatedString> Table::render_lines_for_terminal(size_t view_width) con write_aligned(col.header, width, col.alignment); } - lines.append(builder.build()); + lines.append(builder.to_deprecated_string()); builder.clear(); for (size_t i = 0; i < view_width; ++i) builder.append('-'); - lines.append(builder.build()); + lines.append(builder.to_deprecated_string()); builder.clear(); for (size_t i = 0; i < m_row_count; ++i) { @@ -65,7 +65,7 @@ Vector<DeprecatedString> Table::render_lines_for_terminal(size_t view_width) con size_t width = col.relative_width * unit_width_length; write_aligned(cell, width, col.alignment); } - lines.append(builder.build()); + lines.append(builder.to_deprecated_string()); builder.clear(); } |