diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-11 18:09:57 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-11 18:09:57 -0800 |
commit | 27e66753c8bd6e664f26d05c1a468dc68be01913 (patch) | |
tree | 0006196c2e60225fb571946957f2e77646c6d6e2 /xfa/fwl/core/cfwl_listbox.cpp | |
parent | 6e1d6032b7990cdf580c99ff491a1b761ee39ca6 (diff) | |
download | pdfium-27e66753c8bd6e664f26d05c1a468dc68be01913.tar.xz |
IFWL cleanup in the Combo classeschromium/2919chromium/2918
Cleanup visibility and unused methods in the IFWL combo code.
Review-Url: https://codereview.chromium.org/2494743002
Diffstat (limited to 'xfa/fwl/core/cfwl_listbox.cpp')
-rw-r--r-- | xfa/fwl/core/cfwl_listbox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fwl/core/cfwl_listbox.cpp b/xfa/fwl/core/cfwl_listbox.cpp index 5827ac4b26..7dfff9e5d1 100644 --- a/xfa/fwl/core/cfwl_listbox.cpp +++ b/xfa/fwl/core/cfwl_listbox.cpp @@ -101,7 +101,7 @@ void CFWL_ListBox::GetScrollPos(FX_FLOAT& fPos, bool bVert) { ToListBox(GetWidget())->GetScrollPos(fPos, bVert); } -int32_t CFWL_ListBox::CountItems() { +int32_t CFWL_ListBox::CountItems() const { return pdfium::CollectionSize<int32_t>(m_ItemArray); } @@ -123,12 +123,12 @@ void CFWL_ListBox::GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) { wsCaption = L""; } -int32_t CFWL_ListBox::CountItems(const IFWL_Widget* pWidget) { +int32_t CFWL_ListBox::CountItems(const IFWL_Widget* pWidget) const { return pdfium::CollectionSize<int32_t>(m_ItemArray); } CFWL_ListItem* CFWL_ListBox::GetItem(const IFWL_Widget* pWidget, - int32_t nIndex) { + int32_t nIndex) const { if (nIndex < 0 || nIndex >= CountItems(pWidget)) return nullptr; |