Index: core/fpdfapi/parser/cpdf_reference.h |
diff --git a/core/fpdfapi/parser/cpdf_reference.h b/core/fpdfapi/parser/cpdf_reference.h |
index 5221832f808c01834c276903b4fcf60eb6558b03..e9416aecadf25ad01cee4dc1774bbc880c279c60 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; |
} |