summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_annot.h
diff options
context:
space:
mode:
authorjaepark <jaepark@google.com>2016-07-26 17:01:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-26 17:01:22 -0700
commitc279a3e1bd3da4e7f7504e438e6df8b7079027f9 (patch)
tree1b38d854fc15bf77bf92dd271b793d5b14821d22 /core/fpdfdoc/cpdf_annot.h
parent6c694f1b3e097da1be5381de83e9e0da85c5a6f8 (diff)
downloadpdfium-c279a3e1bd3da4e7f7504e438e6df8b7079027f9.tar.xz
Use smart pointer for CPDF_Form in CPDF_Annot.
CPDF_Annot owns CPDF_Form, so use std::unique_ptr for memory management. BUG=pdfium:518 Review-Url: https://codereview.chromium.org/2189463003
Diffstat (limited to 'core/fpdfdoc/cpdf_annot.h')
-rw-r--r--core/fpdfdoc/cpdf_annot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfdoc/cpdf_annot.h b/core/fpdfdoc/cpdf_annot.h
index b5d9186fd3..eab76a6376 100644
--- a/core/fpdfdoc/cpdf_annot.h
+++ b/core/fpdfdoc/cpdf_annot.h
@@ -64,7 +64,7 @@ class CPDF_Annot {
CPDF_Dictionary* const m_pAnnotDict;
CPDF_Document* const m_pDocument;
const CFX_ByteString m_sSubtype;
- std::map<CPDF_Stream*, CPDF_Form*> m_APMap;
+ std::map<CPDF_Stream*, std::unique_ptr<CPDF_Form>> m_APMap;
};
#endif // CORE_FPDFDOC_CPDF_ANNOT_H_