Index: xfa/fwl/theme/cfwl_datetimepickedtp.cpp |
diff --git a/xfa/fwl/theme/cfwl_datetimepickedtp.cpp b/xfa/fwl/theme/cfwl_datetimepickedtp.cpp |
index 54ddcdeb9ea8615e06ba8b1af128d4d89711e24c..a303a4ea1f76e69677890178daeb4bf43223a0a3 100644 |
--- a/xfa/fwl/theme/cfwl_datetimepickedtp.cpp |
+++ b/xfa/fwl/theme/cfwl_datetimepickedtp.cpp |
@@ -13,14 +13,15 @@ CFWL_DateTimePickerTP::CFWL_DateTimePickerTP() { |
m_pThemeData = new DTPThemeData; |
initThemeData(); |
} |
+ |
CFWL_DateTimePickerTP::~CFWL_DateTimePickerTP() { |
delete m_pThemeData; |
} |
-FX_BOOL CFWL_DateTimePickerTP::IsValidWidget(IFWL_Widget* pWidget) { |
- if (!pWidget) |
- return FALSE; |
- return pWidget->GetClassID() == FWL_CLASSHASH_DateTimePicker; |
+ |
+bool CFWL_DateTimePickerTP::IsValidWidget(IFWL_Widget* pWidget) { |
+ return pWidget && pWidget->GetClassID() == FWL_Type::DateTimePicker; |
} |
+ |
FX_BOOL CFWL_DateTimePickerTP::DrawBackground(CFWL_ThemeBackground* pParams) { |
if (!pParams) |
return FALSE; |