From e9c3583c2cc27fc88ee81047c236ec99dd51e8de Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 3 Jul 2015 11:31:14 +0200 Subject: improve the returnbyref loplugin Change-Id: I1b510a6194282dfa4a9001d473127c5ebc8b44eb Reviewed-on: https://gerrit.libreoffice.org/16731 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/dlg/sdtreelb.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 59b9d0f45df8..46493a4e7201 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -373,8 +373,8 @@ void SdPageObjsTLB::InitEntry(SvTreeListEntry* pEntry, { sal_uInt16 nColToHilite = 1; //0==Bitmap;1=="Spalte1";2=="Spalte2" SvTreeListBox::InitEntry( pEntry, rStr, rImg1, rImg2, eButtonKind ); - SvLBoxString* pCol = static_cast(pEntry->GetItem( nColToHilite )); - SvLBoxString* pStr = new SvLBoxString( pEntry, 0, pCol->GetText() ); + SvLBoxString& rCol = static_cast(pEntry->GetItem( nColToHilite )); + SvLBoxString* pStr = new SvLBoxString( pEntry, 0, rCol.GetText() ); pEntry->ReplaceItem( pStr, nColToHilite ); } -- cgit v1.2.3