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_dictionary.cpp | |
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_dictionary.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_dictionary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_dictionary.cpp b/core/fpdfapi/parser/cpdf_dictionary.cpp index 2aa5248be0..aab7422b3c 100644 --- a/core/fpdfapi/parser/cpdf_dictionary.cpp +++ b/core/fpdfapi/parser/cpdf_dictionary.cpp @@ -174,7 +174,7 @@ bool CPDF_Dictionary::IsSignatureDict() const { } void CPDF_Dictionary::SetFor(const CFX_ByteString& key, CPDF_Object* pObj) { - CHECK(!pObj || pObj->GetObjNum() == 0); + CHECK(!pObj || pObj->IsInline()); auto it = m_Map.find(key); if (it == m_Map.end()) { if (pObj) |