summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_font/include
diff options
context:
space:
mode:
authorweili <weili@chromium.org>2016-07-06 18:10:35 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-06 18:10:35 -0700
commit44105d862bfcaf9fce0ee0dfe283337bf5980337 (patch)
tree9c4f3e31b7c1e7ec0ea6eff56c1b81407ce79870 /core/fpdfapi/fpdf_font/include
parent2f6d1480a1be2b1f82c94219c2d99e67d7e0660d (diff)
downloadpdfium-44105d862bfcaf9fce0ee0dfe283337bf5980337.tar.xz
Change class member variables in raw pointer type into unique_ptr
Also did some cleanups such as removing an unused member variables and some unused structs. BUG=pdfium:518 Review-Url: https://codereview.chromium.org/2119013002
Diffstat (limited to 'core/fpdfapi/fpdf_font/include')
-rw-r--r--core/fpdfapi/fpdf_font/include/cpdf_font.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_font/include/cpdf_font.h b/core/fpdfapi/fpdf_font/include/cpdf_font.h
index e8a7901043..390a3137b6 100644
--- a/core/fpdfapi/fpdf_font/include/cpdf_font.h
+++ b/core/fpdfapi/fpdf_font/include/cpdf_font.h
@@ -7,6 +7,8 @@
#ifndef CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_
#define CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_
+#include <memory>
+
#include "core/fxcrt/include/fx_string.h"
#include "core/fxcrt/include/fx_system.h"
#include "core/fxge/include/fx_font.h"
@@ -114,7 +116,7 @@ class CPDF_Font {
CFX_ByteString m_BaseFont;
CPDF_StreamAcc* m_pFontFile;
CPDF_Dictionary* m_pFontDict;
- mutable CPDF_ToUnicodeMap* m_pToUnicodeMap;
+ mutable std::unique_ptr<CPDF_ToUnicodeMap> m_pToUnicodeMap;
mutable FX_BOOL m_bToUnicodeLoaded;
int m_Flags;
FX_RECT m_FontBBox;