summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPDF
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-02-17 20:15:10 +0000
committerAndreas Kling <kling@serenityos.org>2023-02-19 17:15:47 +0100
commit2db168acc112e8f032d57f8225a8122c0e7f4207 (patch)
treeadd8e7858b1fe3861624a8392703d6172e4fe30c /Userland/Libraries/LibPDF
parent3c5090e17257667514156900a552d875b46da27d (diff)
downloadserenity-2db168acc112e8f032d57f8225a8122c0e7f4207.zip
LibTextCodec+Everywhere: Port Decoders to new Strings
Diffstat (limited to 'Userland/Libraries/LibPDF')
-rw-r--r--Userland/Libraries/LibPDF/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibPDF/Parser.cpp b/Userland/Libraries/LibPDF/Parser.cpp
index c6ade6bac6..4f90d06471 100644
--- a/Userland/Libraries/LibPDF/Parser.cpp
+++ b/Userland/Libraries/LibPDF/Parser.cpp
@@ -267,7 +267,7 @@ NonnullRefPtr<StringObject> Parser::parse_string()
if (unencrypted_string.bytes().starts_with(Array<u8, 2> { 0xfe, 0xff })) {
// The string is encoded in UTF16-BE
- string_object->set_string(TextCodec::decoder_for("utf-16be"sv)->to_utf8(unencrypted_string));
+ string_object->set_string(TextCodec::decoder_for("utf-16be"sv)->to_utf8(unencrypted_string).release_value_but_fixme_should_propagate_errors().to_deprecated_string());
} else if (unencrypted_string.bytes().starts_with(Array<u8, 3> { 239, 187, 191 })) {
// The string is encoded in UTF-8. This is the default anyways, but if these bytes
// are explicitly included, we have to trim them