summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/extended/accessiblelistboxentry.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx
index fc296b4eb121..a0aa0a760c21 100644
--- a/accessibility/source/extended/accessiblelistboxentry.cxx
+++ b/accessibility/source/extended/accessiblelistboxentry.cxx
@@ -460,12 +460,11 @@ namespace accessibility
sal_uInt16 iRealItemCount = 0;
sal_uInt16 iCount = 0;
sal_uInt16 iTotleItemCount = pEntry->ItemCount();
- SvLBoxItem* pItem;
while( iCount < iTotleItemCount )
{
- pItem = pEntry->GetItem( iCount );
+ const SvLBoxItem* pItem = pEntry->GetItem( iCount );
if ( pItem->GetType() == SV_ITEM_ID_LBOXSTRING &&
- !static_cast<SvLBoxString*>( pItem )->GetText().isEmpty() )
+ !static_cast<const SvLBoxString*>( pItem )->GetText().isEmpty() )
{
iRealItemCount++;
}