diff options
author | Nico Weber <thakis@chromium.org> | 2015-08-04 13:00:21 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2015-08-04 13:00:21 -0700 |
commit | 9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f (patch) | |
tree | c97037f398d714665aefccb6eb54d0969ad7030c /core/src/fxge/android/fx_android_imp.cpp | |
parent | 780cee82236d1b3b0f9b01a22424e4b8ec9a6f12 (diff) | |
download | pdfium-9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f.tar.xz |
XFA: clang-format all pdfium code.
No behavior change.
Generated by:
find . -name '*.cpp' -o -name '*.h' | \
grep -E -v 'third_party|thirdparties|lpng_v163|tiff_v403' | \
xargs ../../buildtools/mac/clang-format -i
Then manually merged https://codereview.chromium.org/1269223002/
See thread "tabs vs spaces" on pdfium@googlegroups.com for discussion.
BUG=none
Diffstat (limited to 'core/src/fxge/android/fx_android_imp.cpp')
-rw-r--r-- | core/src/fxge/android/fx_android_imp.cpp | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/core/src/fxge/android/fx_android_imp.cpp b/core/src/fxge/android/fx_android_imp.cpp index c2b5460a90..1927358983 100644 --- a/core/src/fxge/android/fx_android_imp.cpp +++ b/core/src/fxge/android/fx_android_imp.cpp @@ -6,27 +6,25 @@ #include "fx_fpf.h" #if _FX_OS_ == _FX_ANDROID_ -void CFX_GEModule::InitPlatform() -{ - IFPF_DeviceModule *pDeviceModule = FPF_GetDeviceModule(); - if (!pDeviceModule) { - return; +void CFX_GEModule::InitPlatform() { + IFPF_DeviceModule* pDeviceModule = FPF_GetDeviceModule(); + if (!pDeviceModule) { + return; + } + IFPF_FontMgr* pFontMgr = pDeviceModule->GetFontMgr(); + if (pFontMgr) { + CFX_AndroidFontInfo* pFontInfo = FX_NEW CFX_AndroidFontInfo; + if (!pFontInfo) { + return; } - IFPF_FontMgr *pFontMgr = pDeviceModule->GetFontMgr(); - if (pFontMgr) { - CFX_AndroidFontInfo *pFontInfo = FX_NEW CFX_AndroidFontInfo; - if (!pFontInfo) { - return; - } - pFontInfo->Init(pFontMgr); - m_pFontMgr->SetSystemFontInfo(pFontInfo); - } - m_pPlatformData = pDeviceModule; + pFontInfo->Init(pFontMgr); + m_pFontMgr->SetSystemFontInfo(pFontInfo); + } + m_pPlatformData = pDeviceModule; } -void CFX_GEModule::DestroyPlatform() -{ - if (m_pPlatformData) { - ((IFPF_DeviceModule*)m_pPlatformData)->Destroy(); - } +void CFX_GEModule::DestroyPlatform() { + if (m_pPlatformData) { + ((IFPF_DeviceModule*)m_pPlatformData)->Destroy(); + } } #endif |