Index: core/fpdfapi/font/cpdf_cidfont.h |
diff --git a/core/fpdfapi/font/cpdf_cidfont.h b/core/fpdfapi/font/cpdf_cidfont.h |
index ae3be3908f12ce78557f262dc84e296776e79b60..79ec7cbb350c299c04dbc82a27e6fab099436d01 100644 |
--- a/core/fpdfapi/font/cpdf_cidfont.h |
+++ b/core/fpdfapi/font/cpdf_cidfont.h |
@@ -11,6 +11,7 @@ |
#include <vector> |
#include "core/fpdfapi/font/cpdf_font.h" |
+#include "core/fxcrt/cfx_maybe_owned.h" |
#include "core/fxcrt/fx_string.h" |
#include "core/fxcrt/fx_system.h" |
@@ -71,8 +72,7 @@ class CPDF_CIDFont : public CPDF_Font { |
void LoadSubstFont(); |
FX_WCHAR GetUnicodeFromCharCode(uint32_t charcode) const; |
- CPDF_CMap* m_pCMap; |
- std::unique_ptr<CPDF_CMap> m_pAllocatedCMap; |
+ CFX_MaybeOwned<CPDF_CMap> m_pCMap; |
CPDF_CID2UnicodeMap* m_pCID2UnicodeMap; |
CIDSet m_Charset; |
bool m_bType1; |