diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-03 11:31:14 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-06 07:04:50 +0000 |
commit | e9c3583c2cc27fc88ee81047c236ec99dd51e8de (patch) | |
tree | b3e8394ca1ec402a31b227339366fc790124c1f8 /accessibility | |
parent | 89c77994d4638c86635c70535fab6508e2f3d900 (diff) |
improve the returnbyref loplugin
Change-Id: I1b510a6194282dfa4a9001d473127c5ebc8b44eb
Reviewed-on: https://gerrit.libreoffice.org/16731
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/accessiblelistboxentry.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index e145b98459f7..2438f60faef6 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -462,9 +462,9 @@ namespace accessibility sal_uInt16 iTotleItemCount = pEntry->ItemCount(); while( iCount < iTotleItemCount ) { - const SvLBoxItem* pItem = pEntry->GetItem( iCount ); - if ( pItem->GetType() == SV_ITEM_ID_LBOXSTRING && - !static_cast<const SvLBoxString*>( pItem )->GetText().isEmpty() ) + const SvLBoxItem& rItem = pEntry->GetItem( iCount ); + if ( rItem.GetType() == SV_ITEM_ID_LBOXSTRING && + !static_cast<const SvLBoxString&>( rItem ).GetText().isEmpty() ) { iRealItemCount++; } |