diff options
author | tsepez <tsepez@chromium.org> | 2016-10-11 13:42:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-11 13:42:12 -0700 |
commit | ab36e73c8c5409fa262d4fa2faffe65c8804a792 (patch) | |
tree | 6a454e2cabb89698f2b05fed0e301eba414b2621 /core/fpdfapi/parser/cpdf_object.h | |
parent | a91b8d395ac8f6aed38cccfda1f38de11dd45bdd (diff) | |
download | pdfium-ab36e73c8c5409fa262d4fa2faffe65c8804a792.tar.xz |
Add CPDF_Object::IsInline()
Prevent having to remember what an object number of 0 implies.
Review-Url: https://codereview.chromium.org/2412673002
Diffstat (limited to 'core/fpdfapi/parser/cpdf_object.h')
-rw-r--r-- | core/fpdfapi/parser/cpdf_object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/cpdf_object.h b/core/fpdfapi/parser/cpdf_object.h index e2c30b96ca..3cf23188a7 100644 --- a/core/fpdfapi/parser/cpdf_object.h +++ b/core/fpdfapi/parser/cpdf_object.h @@ -41,6 +41,7 @@ class CPDF_Object { virtual Type GetType() const = 0; uint32_t GetObjNum() const { return m_ObjNum; } uint32_t GetGenNum() const { return m_GenNum; } + bool IsInline() const { return m_ObjNum == 0; } // Create a deep copy of the object. virtual CPDF_Object* Clone() const = 0; |