summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPDF/Document.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-06 01:12:49 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-06 08:54:33 +0100
commit57dc179b1fce5d4b7171311b04667debfe693095 (patch)
treea459d1aef92dc4e49bbf03b32621b1e7e30d4e64 /Userland/Libraries/LibPDF/Document.h
parent6e19ab2bbce0b113b628e6f8e9b5c0640053933e (diff)
downloadserenity-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/Libraries/LibPDF/Document.h')
-rw-r--r--Userland/Libraries/LibPDF/Document.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Libraries/LibPDF/Document.h b/Userland/Libraries/LibPDF/Document.h
index 8dca3cc3e9..99a41aa641 100644
--- a/Userland/Libraries/LibPDF/Document.h
+++ b/Userland/Libraries/LibPDF/Document.h
@@ -66,7 +66,7 @@ struct OutlineItem final : public RefCounted<OutlineItem> {
OutlineItem() = default;
- DeprecatedString to_string(int indent) const;
+ DeprecatedString to_deprecated_string(int indent) const;
};
struct OutlineDict final : public RefCounted<OutlineDict> {
@@ -185,8 +185,8 @@ struct Formatter<PDF::Page> : Formatter<FormatString> {
{
return Formatter<FormatString>::format(builder,
"Page {{\n resources={}\n contents={}\n media_box={}\n crop_box={}\n user_unit={}\n rotate={}\n}}"sv,
- page.resources->to_string(1),
- page.contents->to_string(1),
+ page.resources->to_deprecated_string(1),
+ page.contents->to_deprecated_string(1),
page.media_box,
page.crop_box,
page.user_unit,
@@ -230,7 +230,7 @@ struct Formatter<PDF::Destination> : Formatter<FormatString> {
for (auto& param : destination.parameters)
param_builder.appendff("{} ", param);
- return Formatter<FormatString>::format(builder, "{{ type={} page={} params={} }}"sv, type_str, destination.page, param_builder.to_string());
+ return Formatter<FormatString>::format(builder, "{{ type={} page={} params={} }}"sv, type_str, destination.page, param_builder.to_deprecated_string());
}
};
@@ -238,7 +238,7 @@ template<>
struct Formatter<PDF::OutlineItem> : Formatter<FormatString> {
ErrorOr<void> format(FormatBuilder& builder, PDF::OutlineItem const& item)
{
- return builder.put_string(item.to_string(0));
+ return builder.put_string(item.to_deprecated_string(0));
}
};
@@ -249,11 +249,11 @@ struct Formatter<PDF::OutlineDict> : Formatter<FormatString> {
StringBuilder child_builder;
child_builder.append('[');
for (auto& child : dict.children)
- child_builder.appendff("{}\n", child.to_string(2));
+ child_builder.appendff("{}\n", child.to_deprecated_string(2));
child_builder.append(" ]"sv);
return Formatter<FormatString>::format(builder,
- "OutlineDict {{\n count={}\n children={}\n}}"sv, dict.count, child_builder.to_string());
+ "OutlineDict {{\n count={}\n children={}\n}}"sv, dict.count, child_builder.to_deprecated_string());
}
};