summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_reference.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-11-07 13:49:17 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-07 13:49:17 -0800
commit5ab31ef3ed4c86211f1ebb3686abb4f5a66472ec (patch)
tree87c1fda94151528b7fcfa3a18cfda87a78cd3b4f /core/fpdfapi/parser/cpdf_reference.h
parentc09625ca59701fabeb49dc59edcf33031b2c6672 (diff)
downloadpdfium-5ab31ef3ed4c86211f1ebb3686abb4f5a66472ec.tar.xz
Use unique_ptr return from CPDF_Parser::ParseIndirectObject()
In turn, propgate to callers. This introduces a few release() calls that will go away as more code is converted. It also removes a couple of WrapUnique calls that are no longer needed as ownership of the object flows along. Review-Url: https://codereview.chromium.org/2479303002
Diffstat (limited to 'core/fpdfapi/parser/cpdf_reference.h')
-rw-r--r--core/fpdfapi/parser/cpdf_reference.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/fpdfapi/parser/cpdf_reference.h b/core/fpdfapi/parser/cpdf_reference.h
index 5221832f80..20516ae567 100644
--- a/core/fpdfapi/parser/cpdf_reference.h
+++ b/core/fpdfapi/parser/cpdf_reference.h
@@ -16,6 +16,7 @@ class CPDF_IndirectObjectHolder;
class CPDF_Reference : public CPDF_Object {
public:
CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, int objnum);
+ ~CPDF_Reference() override;
// CPDF_Object.
Type GetType() const override;
@@ -35,12 +36,9 @@ class CPDF_Reference : public CPDF_Object {
void SetRef(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum);
protected:
- ~CPDF_Reference() override;
-
CPDF_Object* CloneNonCyclic(
bool bDirect,
std::set<const CPDF_Object*>* pVisited) const override;
-
CPDF_Object* SafeGetDirect() const;
CPDF_IndirectObjectHolder* m_pObjList;