summaryrefslogtreecommitdiff
path: root/core/fxge/ge/cttfontdesc.cpp
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-10-11 13:21:34 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-11 13:21:34 -0700
commita91b8d395ac8f6aed38cccfda1f38de11dd45bdd (patch)
tree97dc87ed807533cc7599dc8e100746b07dc62456 /core/fxge/ge/cttfontdesc.cpp
parentf3fbe83a0f6c1dfb05722a6f0a4056c53548fb6e (diff)
downloadpdfium-a91b8d395ac8f6aed38cccfda1f38de11dd45bdd.tar.xz
Deleted unused members in CTTFontDesc
Review-Url: https://codereview.chromium.org/2408213002
Diffstat (limited to 'core/fxge/ge/cttfontdesc.cpp')
-rw-r--r--core/fxge/ge/cttfontdesc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/fxge/ge/cttfontdesc.cpp b/core/fxge/ge/cttfontdesc.cpp
index 1e4ece4dc1..269abfe7f7 100644
--- a/core/fxge/ge/cttfontdesc.cpp
+++ b/core/fxge/ge/cttfontdesc.cpp
@@ -10,12 +10,12 @@
CTTFontDesc::~CTTFontDesc() {
if (m_Type == 1) {
- if (m_SingleFace.m_pFace)
- FXFT_Done_Face(m_SingleFace.m_pFace);
+ if (m_SingleFace)
+ FXFT_Done_Face(m_SingleFace);
} else if (m_Type == 2) {
for (int i = 0; i < 16; i++) {
- if (m_TTCFace.m_pFaces[i])
- FXFT_Done_Face(m_TTCFace.m_pFaces[i]);
+ if (m_TTCFaces[i])
+ FXFT_Done_Face(m_TTCFaces[i]);
}
}
FX_Free(m_pFontData);
@@ -23,12 +23,12 @@ CTTFontDesc::~CTTFontDesc() {
int CTTFontDesc::ReleaseFace(FXFT_Face face) {
if (m_Type == 1) {
- if (m_SingleFace.m_pFace != face)
+ if (m_SingleFace != face)
return -1;
} else if (m_Type == 2) {
int i;
for (i = 0; i < 16; i++) {
- if (m_TTCFace.m_pFaces[i] == face)
+ if (m_TTCFaces[i] == face)
break;
}
if (i == 16)