mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:37:35 +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)));
|
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
|
/// true, except just before the XRef table is parsed (and while the linearization
|
||||||
/// dict is being read).
|
/// 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:
|
private:
|
||||||
explicit Document(NonnullRefPtr<DocumentParser> const& parser);
|
explicit Document(NonnullRefPtr<DocumentParser> const& parser);
|
||||||
|
|
|
@ -446,7 +446,7 @@ PDFErrorOr<NonnullRefPtr<StreamObject>> Parser::parse_stream(NonnullRefPtr<DictO
|
||||||
ReadonlyBytes bytes;
|
ReadonlyBytes bytes;
|
||||||
|
|
||||||
auto maybe_length = dict->get(CommonNames::Length);
|
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
|
// The PDF writer has kindly provided us with the direct length of the stream
|
||||||
m_reader.save();
|
m_reader.save();
|
||||||
auto length = TRY(m_document->resolve_to<int>(maybe_length.value()));
|
auto length = TRY(m_document->resolve_to<int>(maybe_length.value()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue