From 7c19dd02d9241e06ecfeeb9ba4ab2971cba7ef43 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 3 Nov 2013 22:59:37 +0100 Subject: cppcheck: reduce scope in ctredlin.cxx Change-Id: I7bdbea6bfadf0f2ce5e3ecb4803929797ebf7af2 --- svx/source/dialog/ctredlin.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'svx') diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx index 254dad624d08..fe3bd4d9892a 100644 --- a/svx/source/dialog/ctredlin.cxx +++ b/svx/source/dialog/ctredlin.cxx @@ -358,13 +358,12 @@ SvTreeListEntry* SvxRedlinTable::CreateEntry() const void SvxRedlinTable::InitEntry(SvTreeListEntry* pEntry, const OUString& rStr, const Image& rColl, const Image& rExp, SvLBoxButtonKind eButtonKind) { - SvLBoxButton* pButton; SvLBoxString* pString; SvLBoxContextBmp* pContextBmp; if( nTreeFlags & TREEFLAG_CHKBTN ) { - pButton= new SvLBoxButton( pEntry,eButtonKind,0,pCheckButtonData ); + SvLBoxButton* pButton= new SvLBoxButton( pEntry,eButtonKind,0,pCheckButtonData ); pEntry->AddItem( pButton ); } -- cgit