mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibPDF: Fix a typo in a function name
...and while here, a comment typo too.
This commit is contained in:
parent
1177308afb
commit
93357a8b70
2 changed files with 3 additions and 3 deletions
|
@ -119,10 +119,10 @@ public:
|
|||
return cast_to<T>(TRY(resolve(value)));
|
||||
}
|
||||
|
||||
/// Whether this Document is reasdy to resolve references, which is usually
|
||||
/// Whether this Document is ready to resolve references, which is usually
|
||||
/// true, except just before the XRef table is parsed (and while the linearization
|
||||
/// dict is being read).
|
||||
bool can_resolve_refefences() { return m_parser->can_resolve_references(); }
|
||||
bool can_resolve_references() { return m_parser->can_resolve_references(); }
|
||||
|
||||
private:
|
||||
explicit Document(NonnullRefPtr<DocumentParser> const& parser);
|
||||
|
|
|
@ -446,7 +446,7 @@ PDFErrorOr<NonnullRefPtr<StreamObject>> Parser::parse_stream(NonnullRefPtr<DictO
|
|||
ReadonlyBytes bytes;
|
||||
|
||||
auto maybe_length = dict->get(CommonNames::Length);
|
||||
if (maybe_length.has_value() && m_document->can_resolve_refefences()) {
|
||||
if (maybe_length.has_value() && m_document->can_resolve_references()) {
|
||||
// The PDF writer has kindly provided us with the direct length of the stream
|
||||
m_reader.save();
|
||||
auto length = TRY(m_document->resolve_to<int>(maybe_length.value()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue