1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:17:35 +00:00

LibPDF: Convert to east-const to comply with the recent style changes

This commit is contained in:
Matthew Olsson 2021-06-01 11:16:11 -07:00 committed by Ali Mohammad Pur
parent 0a4d8ef98d
commit 612b183703
17 changed files with 120 additions and 120 deletions

View file

@ -18,12 +18,12 @@ class Document;
class Parser final : public RefCounted<Parser> {
public:
static Vector<Command> parse_graphics_commands(const ReadonlyBytes&);
static Vector<Command> parse_graphics_commands(ReadonlyBytes const&);
Parser(Badge<Document>, const ReadonlyBytes&);
Parser(Badge<Document>, ReadonlyBytes const&);
[[nodiscard]] ALWAYS_INLINE const RefPtr<DictObject>& trailer() const { return m_trailer; }
void set_document(const RefPtr<Document>& document) { m_document = document; }
[[nodiscard]] ALWAYS_INLINE RefPtr<DictObject> const& trailer() const { return m_trailer; }
void set_document(RefPtr<Document> const& document) { m_document = document; }
// Parses the header and initializes the xref table and trailer
bool initialize();
@ -80,15 +80,15 @@ private:
friend struct AK::Formatter<PageOffsetHintTable>;
friend struct AK::Formatter<PageOffsetHintTableEntry>;
explicit Parser(const ReadonlyBytes&);
explicit Parser(ReadonlyBytes const&);
bool parse_header();
bool initialize_linearization_dict();
bool initialize_linearized_xref_table();
bool initialize_non_linearized_xref_table();
bool initialize_hint_tables();
Optional<PageOffsetHintTable> parse_page_offset_hint_table(const ReadonlyBytes& hint_stream_bytes);
Optional<Vector<PageOffsetHintTableEntry>> parse_all_page_offset_hint_table_entries(const PageOffsetHintTable&, const ReadonlyBytes& hint_stream_bytes);
Optional<PageOffsetHintTable> parse_page_offset_hint_table(ReadonlyBytes const& hint_stream_bytes);
Optional<Vector<PageOffsetHintTableEntry>> parse_all_page_offset_hint_table_entries(PageOffsetHintTable const&, ReadonlyBytes const& hint_stream_bytes);
RefPtr<XRefTable> parse_xref_table();
RefPtr<DictObject> parse_file_trailer();