summaryrefslogtreecommitdiff
path: root/xfa/src/fwl/src/theme/listboxtp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/src/fwl/src/theme/listboxtp.cpp')
-rw-r--r--xfa/src/fwl/src/theme/listboxtp.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/xfa/src/fwl/src/theme/listboxtp.cpp b/xfa/src/fwl/src/theme/listboxtp.cpp
index 3542ae4278..3e19cf7697 100644
--- a/xfa/src/fwl/src/theme/listboxtp.cpp
+++ b/xfa/src/fwl/src/theme/listboxtp.cpp
@@ -8,11 +8,13 @@
CFWL_ListBoxTP::CFWL_ListBoxTP() {}
CFWL_ListBoxTP::~CFWL_ListBoxTP() {}
FX_BOOL CFWL_ListBoxTP::IsValidWidget(IFWL_Widget* pWidget) {
- _FWL_RETURN_VALUE_IF_FAIL(pWidget, FALSE);
+ if (!pWidget)
+ return FALSE;
return pWidget->GetClassID() == FWL_CLASSHASH_ListBox;
}
FX_BOOL CFWL_ListBoxTP::DrawBackground(CFWL_ThemeBackground* pParams) {
- _FWL_RETURN_VALUE_IF_FAIL(pParams, FALSE);
+ if (!pParams)
+ return FALSE;
switch (pParams->m_iPart) {
case FWL_PART_LTB_Border: {
DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix);