diff options
author | Wei Li <weili@chromium.org> | 2016-03-28 11:06:53 -0700 |
---|---|---|
committer | Wei Li <weili@chromium.org> | 2016-03-28 11:06:53 -0700 |
commit | 4678e283c5b48a8954bd0db3565b1376bd9c6b27 (patch) | |
tree | 3ff1e840c53fe0df30dd3462957a016995af38dc /core/fxge/apple/fx_apple_platform.cpp | |
parent | 8940993efffaaf432320509555dc61122b8b72b2 (diff) | |
download | pdfium-4678e283c5b48a8954bd0db3565b1376bd9c6b27.tar.xz |
Cleanup one mac header
Remove unimplemented/unused class, and other cleanup
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1834063002 .
Diffstat (limited to 'core/fxge/apple/fx_apple_platform.cpp')
-rw-r--r-- | core/fxge/apple/fx_apple_platform.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/core/fxge/apple/fx_apple_platform.cpp b/core/fxge/apple/fx_apple_platform.cpp index 9683b5c6f4..b68d50eab3 100644 --- a/core/fxge/apple/fx_apple_platform.cpp +++ b/core/fxge/apple/fx_apple_platform.cpp @@ -18,12 +18,14 @@ void CFX_AggDeviceDriver::InitPlatform() { CQuartz2D& quartz2d = - ((CApplePlatform*)CFX_GEModule::Get()->GetPlatformData())->_quartz2d; + static_cast<CApplePlatform*>(CFX_GEModule::Get()->GetPlatformData()) + ->m_quartz2d; m_pPlatformGraphics = quartz2d.createGraphics(m_pBitmap); } void CFX_AggDeviceDriver::DestroyPlatform() { CQuartz2D& quartz2d = - ((CApplePlatform*)CFX_GEModule::Get()->GetPlatformData())->_quartz2d; + static_cast<CApplePlatform*>(CFX_GEModule::Get()->GetPlatformData()) + ->m_quartz2d; if (m_pPlatformGraphics) { quartz2d.destroyGraphics(m_pPlatformGraphics); m_pPlatformGraphics = NULL; @@ -63,7 +65,8 @@ static FX_BOOL _CGDrawGlyphRun(CGContextRef pContext, new_matrix.Concat(*pObject2Device); } CQuartz2D& quartz2d = - ((CApplePlatform*)CFX_GEModule::Get()->GetPlatformData())->_quartz2d; + static_cast<CApplePlatform*>(CFX_GEModule::Get()->GetPlatformData()) + ->m_quartz2d; if (!pFont->GetPlatformFont()) { if (pFont->GetPsName() == CFX_WideString::FromLocal("DFHeiStd-W5")) { return FALSE; @@ -164,7 +167,8 @@ FX_BOOL CFX_AggDeviceDriver::DrawDeviceText(int nChars, void CFX_Font::ReleasePlatformResource() { if (m_pPlatformFont) { CQuartz2D& quartz2d = - ((CApplePlatform*)CFX_GEModule::Get()->GetPlatformData())->_quartz2d; + static_cast<CApplePlatform*>(CFX_GEModule::Get()->GetPlatformData()) + ->m_quartz2d; quartz2d.DestroyFont(m_pPlatformFont); m_pPlatformFont = NULL; } |