diff options
Diffstat (limited to 'xfa/fwl/theme/cfwl_listboxtp.cpp')
-rw-r--r-- | xfa/fwl/theme/cfwl_listboxtp.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fwl/theme/cfwl_listboxtp.cpp b/xfa/fwl/theme/cfwl_listboxtp.cpp index 5bab1b09e5..1d381a4280 100644 --- a/xfa/fwl/theme/cfwl_listboxtp.cpp +++ b/xfa/fwl/theme/cfwl_listboxtp.cpp @@ -13,13 +13,13 @@ #include "xfa/fxgraphics/cfx_path.h" CFWL_ListBoxTP::CFWL_ListBoxTP() {} + CFWL_ListBoxTP::~CFWL_ListBoxTP() {} -FX_BOOL CFWL_ListBoxTP::IsValidWidget(IFWL_Widget* pWidget) { - if (!pWidget) - return FALSE; - return pWidget->GetClassID() == FWL_CLASSHASH_ListBox; +bool CFWL_ListBoxTP::IsValidWidget(IFWL_Widget* pWidget) { + return pWidget && pWidget->GetClassID() == FWL_Type::ListBox; } + FX_BOOL CFWL_ListBoxTP::DrawBackground(CFWL_ThemeBackground* pParams) { if (!pParams) return FALSE; |