| Index: core/fpdfdoc/include/fpdf_doc.h
|
| diff --git a/core/fpdfdoc/include/fpdf_doc.h b/core/fpdfdoc/include/fpdf_doc.h
|
| index afa5a30b1877c59831c7c910b4d118726c18580e..be52a1b8293d75b6646883254edecf5d22c1a9ee 100644
|
| --- a/core/fpdfdoc/include/fpdf_doc.h
|
| +++ b/core/fpdfdoc/include/fpdf_doc.h
|
| @@ -374,8 +374,10 @@ class CPDF_AnnotList {
|
| CPDF_RenderOptions* pOptions,
|
| FX_RECT* pClipRect);
|
| size_t Count() const { return m_AnnotList.size(); }
|
| - CPDF_Annot* GetAt(size_t index) const { return m_AnnotList[index]; }
|
| - const std::vector<CPDF_Annot*>& All() const { return m_AnnotList; }
|
| + CPDF_Annot* GetAt(size_t index) const { return m_AnnotList[index].get(); }
|
| + const std::vector<std::unique_ptr<CPDF_Annot>>& All() const {
|
| + return m_AnnotList;
|
| + }
|
| CPDF_Document* GetDocument() const { return m_pDocument; }
|
|
|
| protected:
|
| @@ -389,7 +391,7 @@ class CPDF_AnnotList {
|
| FX_RECT* clip_rect);
|
|
|
| CPDF_Document* const m_pDocument;
|
| - std::vector<CPDF_Annot*> m_AnnotList;
|
| + std::vector<std::unique_ptr<CPDF_Annot>> m_AnnotList;
|
| };
|
|
|
| #define COLORTYPE_TRANSPARENT 0
|
|
|