summaryrefslogtreecommitdiff
path: root/xfa/fwl/theme/cfwl_datetimepickertp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/theme/cfwl_datetimepickertp.cpp')
-rw-r--r--xfa/fwl/theme/cfwl_datetimepickertp.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/xfa/fwl/theme/cfwl_datetimepickertp.cpp b/xfa/fwl/theme/cfwl_datetimepickertp.cpp
index 8902ef9351..d13d4c7548 100644
--- a/xfa/fwl/theme/cfwl_datetimepickertp.cpp
+++ b/xfa/fwl/theme/cfwl_datetimepickertp.cpp
@@ -18,14 +18,13 @@ void CFWL_DateTimePickerTP::DrawBackground(CFWL_ThemeBackground* pParams) {
return;
switch (pParams->m_iPart) {
- case CFWL_Part::Border: {
- DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix);
+ case CFWL_Part::Border:
+ DrawBorder(pParams->m_pGraphics.Get(), &pParams->m_rtPart,
+ &pParams->m_matrix);
break;
- }
- case CFWL_Part::DropDownButton: {
+ case CFWL_Part::DropDownButton:
DrawDropDownButton(pParams, &pParams->m_matrix);
break;
- }
default:
break;
}
@@ -56,7 +55,7 @@ void CFWL_DateTimePickerTP::DrawDropDownButton(CFWL_ThemeBackground* pParams,
default:
break;
}
- DrawArrowBtn(pParams->m_pGraphics, &pParams->m_rtPart,
+ DrawArrowBtn(pParams->m_pGraphics.Get(), &pParams->m_rtPart,
FWLTHEME_DIRECTION_Down, eState, pMatrix);
}