From 931a6b9c253f161f8016064eee601cd238ed246f Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 3 Jul 2018 17:18:35 +0000 Subject: Use UnownedPtr<> in cfwl_scrollbar.h and cfwl_themebackground.h Change-Id: Ib65197a9cd9de173de8e77db168dcfbb43669022 Reviewed-on: https://pdfium-review.googlesource.com/36911 Commit-Queue: dsinclair Reviewed-by: dsinclair --- xfa/fwl/theme/cfwl_monthcalendartp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'xfa/fwl/theme/cfwl_monthcalendartp.cpp') diff --git a/xfa/fwl/theme/cfwl_monthcalendartp.cpp b/xfa/fwl/theme/cfwl_monthcalendartp.cpp index 6bb3f186b7..c17451d1ae 100644 --- a/xfa/fwl/theme/cfwl_monthcalendartp.cpp +++ b/xfa/fwl/theme/cfwl_monthcalendartp.cpp @@ -37,7 +37,8 @@ void CFWL_MonthCalendarTP::DrawBackground(CFWL_ThemeBackground* pParams) { switch (pParams->m_iPart) { case CFWL_Part::Border: { - DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix); + DrawBorder(pParams->m_pGraphics.Get(), &pParams->m_rtPart, + &pParams->m_matrix); break; } case CFWL_Part::Background: { @@ -50,13 +51,13 @@ void CFWL_MonthCalendarTP::DrawBackground(CFWL_ThemeBackground* pParams) { } case CFWL_Part::LBtn: { FWLTHEME_STATE eState = GetState(pParams->m_dwStates); - DrawArrowBtn(pParams->m_pGraphics, &pParams->m_rtPart, + DrawArrowBtn(pParams->m_pGraphics.Get(), &pParams->m_rtPart, FWLTHEME_DIRECTION_Left, eState, &pParams->m_matrix); break; } case CFWL_Part::RBtn: { FWLTHEME_STATE eState = GetState(pParams->m_dwStates); - DrawArrowBtn(pParams->m_pGraphics, &pParams->m_rtPart, + DrawArrowBtn(pParams->m_pGraphics.Get(), &pParams->m_rtPart, FWLTHEME_DIRECTION_Right, eState, &pParams->m_matrix); break; } -- cgit v1.2.3