diff options
Diffstat (limited to 'xfa/fwl/theme/cfwl_comboboxtp.cpp')
-rw-r--r-- | xfa/fwl/theme/cfwl_comboboxtp.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xfa/fwl/theme/cfwl_comboboxtp.cpp b/xfa/fwl/theme/cfwl_comboboxtp.cpp index 131e6388f7..b02caf8a3e 100644 --- a/xfa/fwl/theme/cfwl_comboboxtp.cpp +++ b/xfa/fwl/theme/cfwl_comboboxtp.cpp @@ -13,7 +13,11 @@ #include "xfa/fxgraphics/cfx_color.h" #include "xfa/fxgraphics/cfx_path.h" -#define FWLTHEME_CAPACITY_ComboFormHandler 8.0f +namespace { + +const float kComboFormHandler = 8.0f; + +} // namespace CFWL_ComboBoxTP::CFWL_ComboBoxTP() { m_dwThemeID = 0; @@ -85,7 +89,7 @@ void CFWL_ComboBoxTP::DrawStrethHandler(CFWL_ThemeBackground* pParams, void* CFWL_ComboBoxTP::GetCapacity(CFWL_ThemePart* pThemePart, CFWL_WidgetCapacity dwCapacity) { if (dwCapacity == CFWL_WidgetCapacity::ComboFormHandler) { - m_fValue = FWLTHEME_CAPACITY_ComboFormHandler; + m_fValue = kComboFormHandler; return &m_fValue; } return CFWL_WidgetTP::GetCapacity(pThemePart, dwCapacity); |