summaryrefslogtreecommitdiff
path: root/fpdfsdk/formfiller/cba_fontmap.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-05-24 13:45:11 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-05-24 22:35:01 +0000
commitdc8a2b7606c2c6c12d5cfb280dfb49128c1a60ab (patch)
tree8808b5cc14ba97955c8b34db7317b9f35c819eea /fpdfsdk/formfiller/cba_fontmap.h
parentedc1e4e5baac33c8f2799e82ff52fd556d3c5e02 (diff)
downloadpdfium-dc8a2b7606c2c6c12d5cfb280dfb49128c1a60ab.tar.xz
Convert to CFX_UnownedPtr, part 10
Change-Id: I4eab5e843580845753c5f80c05cf9490a85114b6 Reviewed-on: https://pdfium-review.googlesource.com/5890 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/formfiller/cba_fontmap.h')
-rw-r--r--fpdfsdk/formfiller/cba_fontmap.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/formfiller/cba_fontmap.h b/fpdfsdk/formfiller/cba_fontmap.h
index 09a5a38116..14aabe4d2a 100644
--- a/fpdfsdk/formfiller/cba_fontmap.h
+++ b/fpdfsdk/formfiller/cba_fontmap.h
@@ -7,6 +7,7 @@
#ifndef FPDFSDK_FORMFILLER_CBA_FONTMAP_H_
#define FPDFSDK_FORMFILLER_CBA_FONTMAP_H_
+#include "core/fxcrt/cfx_unowned_ptr.h"
#include "fpdfsdk/pdfwindow/PWL_FontMap.h"
class CPDF_Dictionary;
@@ -17,9 +18,8 @@ class CBA_FontMap : public CPWL_FontMap {
CBA_FontMap(CPDFSDK_Annot* pAnnot, CFX_SystemHandler* pSystemHandler);
~CBA_FontMap() override;
- void SetDefaultFont(CPDF_Font* pFont, const CFX_ByteString& sFontName);
-
void Reset();
+ void SetDefaultFont(CPDF_Font* pFont, const CFX_ByteString& sFontName);
void SetAPType(const CFX_ByteString& sAPType);
private:
@@ -36,9 +36,9 @@ class CBA_FontMap : public CPWL_FontMap {
CPDF_Font* GetAnnotDefaultFont(CFX_ByteString* csNameTag);
void AddFontToAnnotDict(CPDF_Font* pFont, const CFX_ByteString& sAlias);
- CPDF_Document* m_pDocument;
- CPDF_Dictionary* m_pAnnotDict;
- CPDF_Font* m_pDefaultFont;
+ CFX_UnownedPtr<CPDF_Document> m_pDocument;
+ CFX_UnownedPtr<CPDF_Dictionary> m_pAnnotDict;
+ CFX_UnownedPtr<CPDF_Font> m_pDefaultFont;
CFX_ByteString m_sDefaultFontName;
CFX_ByteString m_sAPType;
};