From f7992b39cec908e549fb995acae477a9efba538b Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 26 Oct 2015 15:36:17 -0700 Subject: Remove default argument from CPDF_Dictionary::SetAt(). Also fix a potential object leak. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1414963005 . --- core/include/fpdfapi/fpdf_objects.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'core/include/fpdfapi') diff --git a/core/include/fpdfapi/fpdf_objects.h b/core/include/fpdfapi/fpdf_objects.h index 419d5fc23e..d6050aec0b 100644 --- a/core/include/fpdfapi/fpdf_objects.h +++ b/core/include/fpdfapi/fpdf_objects.h @@ -410,9 +410,7 @@ class CPDF_Dictionary : public CPDF_Object { CPDF_Object* GetNextElement(FX_POSITION& pos, CFX_ByteString& key) const; - void SetAt(const CFX_ByteStringC& key, - CPDF_Object* pObj, - CPDF_IndirectObjects* pObjs = NULL); + void SetAt(const CFX_ByteStringC& key, CPDF_Object* pObj); void SetAtName(const CFX_ByteStringC& key, const CFX_ByteString& name); @@ -436,12 +434,6 @@ class CPDF_Dictionary : public CPDF_Object { CPDF_IndirectObjects* pDoc, FX_DWORD objnum); - void AddReference(const CFX_ByteStringC& key, - CPDF_IndirectObjects* pDoc, - CPDF_Object* obj) { - AddReference(key, pDoc, obj->GetObjNum()); - } - void SetAtRect(const CFX_ByteStringC& key, const CFX_FloatRect& rect); void SetAtMatrix(const CFX_ByteStringC& key, const CFX_AffineMatrix& matrix); -- cgit v1.2.3