| Index: core/fxge/ge/fx_ge_font.cpp
|
| diff --git a/core/fxge/ge/fx_ge_font.cpp b/core/fxge/ge/fx_ge_font.cpp
|
| index 144228ff28980f15f4331c38d4ddf5b078e217a8..11c7fd9dae2146c1e5f2eef9ca7c6340ca8c8741 100644
|
| --- a/core/fxge/ge/fx_ge_font.cpp
|
| +++ b/core/fxge/ge/fx_ge_font.cpp
|
| @@ -60,9 +60,9 @@ CFX_Font::CFX_Font() {
|
|
|
| #ifdef PDF_ENABLE_XFA
|
| FX_BOOL CFX_Font::LoadClone(const CFX_Font* pFont) {
|
| - if (pFont == NULL) {
|
| + if (!pFont)
|
| return FALSE;
|
| - }
|
| +
|
| m_bLogic = TRUE;
|
| if (pFont->m_pSubstFont) {
|
| m_pSubstFont = new CFX_SubstFont;
|
| @@ -239,7 +239,7 @@ FX_BOOL CFX_Font::LoadEmbedded(const uint8_t* data, uint32_t size) {
|
| m_pFontData = m_pFontDataAllocation;
|
| m_bEmbedded = TRUE;
|
| m_dwSize = size;
|
| - return m_Face != NULL;
|
| + return !!m_Face;
|
| }
|
|
|
| FX_BOOL CFX_Font::IsTTFont() const {
|
|
|