summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPDF/Object.h
diff options
context:
space:
mode:
authorMatthew Olsson <matthewcolsson@gmail.com>2021-05-23 16:37:33 -0700
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-05-25 00:24:09 +0430
commita08922d2f6fa3d86aa8af0bbbfba95d657bea634 (patch)
tree4fc0d09dbf37b8ba52d16f0cd53b1ffd24b8837b /Userland/Libraries/LibPDF/Object.h
parent777c232e162b1ea1d563821fb8ded3c0450db1a3 (diff)
downloadserenity-a08922d2f6fa3d86aa8af0bbbfba95d657bea634.zip
LibPDF: Parse outline structures
Diffstat (limited to 'Userland/Libraries/LibPDF/Object.h')
-rw-r--r--Userland/Libraries/LibPDF/Object.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibPDF/Object.h b/Userland/Libraries/LibPDF/Object.h
index e75d38c0a3..048ef09f8d 100644
--- a/Userland/Libraries/LibPDF/Object.h
+++ b/Userland/Libraries/LibPDF/Object.h
@@ -67,7 +67,7 @@ public:
~NameObject() override = default;
- [[nodiscard]] ALWAYS_INLINE FlyString name() const { return m_name; }
+ [[nodiscard]] ALWAYS_INLINE const FlyString& name() const { return m_name; }
ALWAYS_INLINE bool is_name() const override { return true; }
ALWAYS_INLINE const char* type_name() const override { return "name"; }
@@ -86,6 +86,7 @@ public:
~ArrayObject() override = default;
+ [[nodiscard]] ALWAYS_INLINE size_t size() const { return m_elements.size(); }
[[nodiscard]] ALWAYS_INLINE Vector<Value> elements() const { return m_elements; }
ALWAYS_INLINE auto begin() const { return m_elements.begin(); }