From 27e66753c8bd6e664f26d05c1a468dc68be01913 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Fri, 11 Nov 2016 18:09:57 -0800 Subject: IFWL cleanup in the Combo classes Cleanup visibility and unused methods in the IFWL combo code. Review-Url: https://codereview.chromium.org/2494743002 --- xfa/fwl/core/cfwl_listbox.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xfa/fwl/core/cfwl_listbox.cpp') 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(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(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; -- cgit v1.2.3