Index: xfa/fwl/theme/cfwl_scrollbartp.cpp |
diff --git a/xfa/fwl/theme/cfwl_scrollbartp.cpp b/xfa/fwl/theme/cfwl_scrollbartp.cpp |
index b1acd21969cdd071a7b84ea2f3d9a3e05bd7c795..54dfbe5531cf09fa247d3d3ba4f8e8ec2031bf7a 100644 |
--- a/xfa/fwl/theme/cfwl_scrollbartp.cpp |
+++ b/xfa/fwl/theme/cfwl_scrollbartp.cpp |
@@ -27,10 +27,8 @@ CFWL_ScrollBarTP::~CFWL_ScrollBarTP() { |
delete m_pThemeData; |
} |
-FX_BOOL CFWL_ScrollBarTP::IsValidWidget(IFWL_Widget* pWidget) { |
- if (!pWidget) |
- return FALSE; |
- return pWidget->GetClassID() == FWL_CLASSHASH_ScrollBar; |
+bool CFWL_ScrollBarTP::IsValidWidget(IFWL_Widget* pWidget) { |
+ return pWidget && pWidget->GetClassID() == FWL_Type::ScrollBar; |
} |
void* CFWL_ScrollBarTP::GetCapacity(CFWL_ThemePart* pThemePart, |
CFWL_WidgetCapacity dwCapacity) { |