Index: xfa/src/fwl/src/core/fwl_appimp.cpp |
diff --git a/xfa/src/fwl/src/core/fwl_appimp.cpp b/xfa/src/fwl/src/core/fwl_appimp.cpp |
index 983219a683136b94a6d166e4a6060da24dbd7a79..85d34e3690a4b39b29e8b47ef7a140b69775dd02 100644 |
--- a/xfa/src/fwl/src/core/fwl_appimp.cpp |
+++ b/xfa/src/fwl/src/core/fwl_appimp.cpp |
@@ -74,7 +74,8 @@ IFWL_AdapterNative* CFWL_AppImp::GetAdapterNative() { |
return m_pAdapterNative; |
} |
IFWL_AdapterWidgetMgr* FWL_GetAdapterWidgetMgr() { |
- return ((CFWL_WidgetMgr*)FWL_GetWidgetMgr())->GetAdapterWidgetMgr(); |
+ return static_cast<CFWL_WidgetMgr*>(FWL_GetWidgetMgr()) |
+ ->GetAdapterWidgetMgr(); |
} |
IFWL_WidgetMgr* CFWL_AppImp::GetWidgetMgr() { |
return m_pWidgetMgr; |
@@ -113,7 +114,8 @@ FWL_ERR FWL_SetFullScreen(IFWL_Widget* pWidget, FX_BOOL bFullScreen) { |
IFWL_NoteThread* pNoteTread = pWidget->GetOwnerThread(); |
if (!pNoteTread) |
return FWL_ERR_Succeeded; |
- CFWL_NoteDriver* pNoteDriver = (CFWL_NoteDriver*)pNoteTread->GetNoteDriver(); |
+ CFWL_NoteDriver* pNoteDriver = |
+ static_cast<CFWL_NoteDriver*>(pNoteTread->GetNoteDriver()); |
if (!pNoteTread) |
return FWL_ERR_Succeeded; |
pNoteDriver->NotifyFullScreenMode(pWidget, bFullScreen); |