summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_dictionary.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-10 14:06:44 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-10 14:06:44 -0700
commit381fc833ac9e6ea58762b7e7ac8b7f2129e8477f (patch)
tree3ea0596bee1c45fe49bbbad0559d6e505ccf0fee /core/fpdfapi/parser/cpdf_dictionary.h
parent5609f39c9d4534733f04a2be631da56948c2e96f (diff)
downloadpdfium-381fc833ac9e6ea58762b7e7ac8b7f2129e8477f.tar.xz
Add method to convert to an indirect object in a dictionary.
Avoid an assert which previously could only be overcome by removing/re-inserting. Back-fill a unit test for the equivalent Array method. BUG=654387 Review-Url: https://codereview.chromium.org/2403143002
Diffstat (limited to 'core/fpdfapi/parser/cpdf_dictionary.h')
-rw-r--r--core/fpdfapi/parser/cpdf_dictionary.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/cpdf_dictionary.h b/core/fpdfapi/parser/cpdf_dictionary.h
index 23f2e0e3ca..b56e40a6ef 100644
--- a/core/fpdfapi/parser/cpdf_dictionary.h
+++ b/core/fpdfapi/parser/cpdf_dictionary.h
@@ -70,6 +70,9 @@ class CPDF_Dictionary : public CPDF_Object {
void SetMatrixFor(const CFX_ByteString& key, const CFX_Matrix& matrix);
void SetBooleanFor(const CFX_ByteString& key, bool bValue);
+ void ConvertToIndirectObjectFor(const CFX_ByteString& key,
+ CPDF_IndirectObjectHolder* pHolder);
+
// Invalidates iterators for the element with the key |key|.
void RemoveFor(const CFX_ByteString& key);