Index: xfa/fwl/lightwidget/cfwl_listbox.cpp |
diff --git a/xfa/fwl/lightwidget/cfwl_listbox.cpp b/xfa/fwl/lightwidget/cfwl_listbox.cpp |
index eb984d670ef1c0072fc40edbd7a8b5d64a30a8d7..a0fff486cd12e81c21f552ba7772d46831ba1505 100644 |
--- a/xfa/fwl/lightwidget/cfwl_listbox.cpp |
+++ b/xfa/fwl/lightwidget/cfwl_listbox.cpp |
@@ -217,11 +217,11 @@ FWL_Error CFWL_ListBox::CFWL_ListBoxDP::GetCaption(IFWL_Widget* pWidget, |
return FWL_Error::Succeeded; |
} |
-int32_t CFWL_ListBox::CFWL_ListBoxDP::CountItems(IFWL_Widget* pWidget) { |
+int32_t CFWL_ListBox::CFWL_ListBoxDP::CountItems(const IFWL_Widget* pWidget) { |
return pdfium::CollectionSize<int32_t>(m_ItemArray); |
} |
-IFWL_ListItem* CFWL_ListBox::CFWL_ListBoxDP::GetItem(IFWL_Widget* pWidget, |
+IFWL_ListItem* CFWL_ListBox::CFWL_ListBoxDP::GetItem(const IFWL_Widget* pWidget, |
int32_t nIndex) { |
if (nIndex < 0 || nIndex >= CountItems(pWidget)) |
return nullptr; |