summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_reference.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/parser/cpdf_reference.h')
-rw-r--r--core/fpdfapi/parser/cpdf_reference.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/cpdf_reference.h b/core/fpdfapi/parser/cpdf_reference.h
index 5221832f80..e9416aecad 100644
--- a/core/fpdfapi/parser/cpdf_reference.h
+++ b/core/fpdfapi/parser/cpdf_reference.h
@@ -47,6 +47,9 @@ class CPDF_Reference : public CPDF_Object {
uint32_t m_RefObjNum;
};
+using UniqueReference =
+ std::unique_ptr<CPDF_Reference, ReleaseDeleter<CPDF_Object>>;
+
inline CPDF_Reference* ToReference(CPDF_Object* obj) {
return obj ? obj->AsReference() : nullptr;
}