diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-06 01:12:49 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-06 08:54:33 +0100 |
commit | 57dc179b1fce5d4b7171311b04667debfe693095 (patch) | |
tree | a459d1aef92dc4e49bbf03b32621b1e7e30d4e64 /Userland/Applications/Spreadsheet/HelpWindow.cpp | |
parent | 6e19ab2bbce0b113b628e6f8e9b5c0640053933e (diff) | |
download | serenity-57dc179b1fce5d4b7171311b04667debfe693095.zip |
Everywhere: Rename to_{string => deprecated_string}() where applicable
This will make it easier to support both string types at the same time
while we convert code, and tracking down remaining uses.
One big exception is Value::to_string() in LibJS, where the name is
dictated by the ToString AO.
Diffstat (limited to 'Userland/Applications/Spreadsheet/HelpWindow.cpp')
-rw-r--r-- | Userland/Applications/Spreadsheet/HelpWindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Applications/Spreadsheet/HelpWindow.cpp b/Userland/Applications/Spreadsheet/HelpWindow.cpp index 899684c690..eafe74c65e 100644 --- a/Userland/Applications/Spreadsheet/HelpWindow.cpp +++ b/Userland/Applications/Spreadsheet/HelpWindow.cpp @@ -142,12 +142,12 @@ DeprecatedString HelpWindow::render(StringView key) VERIFY(m_docs.has_object(key)); auto& doc = m_docs.get(key).as_object(); - auto name = doc.get("name"sv).to_string(); + auto name = doc.get("name"sv).to_deprecated_string(); auto argc = doc.get("argc"sv).to_u32(0); VERIFY(doc.has_array("argnames"sv)); auto& argnames = doc.get("argnames"sv).as_array(); - auto docstring = doc.get("doc"sv).to_string(); + auto docstring = doc.get("doc"sv).to_deprecated_string(); StringBuilder markdown_builder; @@ -162,7 +162,7 @@ DeprecatedString HelpWindow::render(StringView key) markdown_builder.append("No required arguments.\n"sv); for (size_t i = 0; i < argc; ++i) - markdown_builder.appendff("- `{}`\n", argnames.at(i).to_string()); + markdown_builder.appendff("- `{}`\n", argnames.at(i).to_deprecated_string()); if (argc > 0) markdown_builder.append("\n"sv); @@ -171,7 +171,7 @@ DeprecatedString HelpWindow::render(StringView key) auto opt_count = argnames.size() - argc; markdown_builder.appendff("{} optional argument(s):\n", opt_count); for (size_t i = argc; i < (size_t)argnames.size(); ++i) - markdown_builder.appendff("- `{}`\n", argnames.at(i).to_string()); + markdown_builder.appendff("- `{}`\n", argnames.at(i).to_deprecated_string()); markdown_builder.append("\n"sv); } @@ -184,8 +184,8 @@ DeprecatedString HelpWindow::render(StringView key) VERIFY(examples.is_object()); markdown_builder.append("# EXAMPLES\n"sv); examples.as_object().for_each_member([&](auto& text, auto& description_value) { - dbgln("```js\n{}\n```\n\n- {}\n", text, description_value.to_string()); - markdown_builder.appendff("```js\n{}\n```\n\n- {}\n", text, description_value.to_string()); + dbgln("```js\n{}\n```\n\n- {}\n", text, description_value.to_deprecated_string()); + markdown_builder.appendff("```js\n{}\n```\n\n- {}\n", text, description_value.to_deprecated_string()); }); } |