diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-21 11:56:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-21 11:56:07 -0800 |
commit | 43170f498b8c619620c4141b2d67ef6ab9a518ca (patch) | |
tree | bdce03d265f3ae0ca0f6ee171ee1099124735d5e /xfa/fwl/theme/cfwl_widgettp.cpp | |
parent | ac9934bfd0570526fb5b688670f32efa56648f5d (diff) | |
download | pdfium-43170f498b8c619620c4141b2d67ef6ab9a518ca.tar.xz |
Update SetThemeColor and SetThemeData
The SetThemeColor and SetThemeData methods are always called with a parameter
of 0. This Cl removes the parameter and updates the code as needed.
Review-Url: https://codereview.chromium.org/2521683002
Diffstat (limited to 'xfa/fwl/theme/cfwl_widgettp.cpp')
-rw-r--r-- | xfa/fwl/theme/cfwl_widgettp.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xfa/fwl/theme/cfwl_widgettp.cpp b/xfa/fwl/theme/cfwl_widgettp.cpp index 0a33a82a0a..d6273696ce 100644 --- a/xfa/fwl/theme/cfwl_widgettp.cpp +++ b/xfa/fwl/theme/cfwl_widgettp.cpp @@ -593,7 +593,7 @@ void CFWL_WidgetTP::DrawBtn(CFX_Graphics* pGraphics, CFX_Path path; path.Create(); if (!CFWL_ArrowData::HasInstance()) - CFWL_ArrowData::GetInstance()->SetColorData(0); + CFWL_ArrowData::GetInstance(); CFWL_ArrowData::CColorData* pColorData = CFWL_ArrowData::GetInstance()->m_pColorData.get(); @@ -617,17 +617,13 @@ void CFWL_WidgetTP::DrawArrowBtn(CFX_Graphics* pGraphics, CFX_Matrix* pMatrix) { DrawBtn(pGraphics, pRect, eState, pMatrix); if (!CFWL_ArrowData::HasInstance()) - CFWL_ArrowData::GetInstance()->SetColorData(0); + CFWL_ArrowData::GetInstance(); CFWL_ArrowData::CColorData* pColorData = CFWL_ArrowData::GetInstance()->m_pColorData.get(); DrawArrow(pGraphics, pRect, eDict, pColorData->clrSign[eState - 1], pMatrix); } -CFWL_ArrowData::CFWL_ArrowData() : m_pColorData(nullptr) { - SetColorData(0); -} - CFWL_FontData::CFWL_FontData() : m_dwStyles(0), m_dwCodePage(0) {} CFWL_FontData::~CFWL_FontData() {} |