cppcheck: reduce scope + remove commented lines

Change-Id: I51656a8bce5c2fdaf267582846ab82df838f05a6
This commit is contained in:
Julien Nabet
2013-08-23 07:42:43 +02:00
parent 7d8b6c311f
commit b51dc041b5

View File

@@ -660,11 +660,10 @@ void SvxBackgroundTabPage::ResetFromWallpaperItem( const SfxItemSet& rSet )
sal_uInt16 nSlot = SID_VIEW_FLD_PIC;
sal_uInt16 nWhich = GetWhich( nSlot );
SvxBrushItem* pTemp = 0;
const CntWallpaperItem* pItem = 0;
if ( rSet.GetItemState( nWhich, sal_False ) >= SFX_ITEM_AVAILABLE )
{
pItem = (const CntWallpaperItem*)&rSet.Get( nWhich );
const CntWallpaperItem* pItem = (const CntWallpaperItem*)&rSet.Get( nWhich );
pTemp = new SvxBrushItem( *pItem, nWhich );
pBgdAttr = pTemp;
}
@@ -697,8 +696,6 @@ void SvxBackgroundTabPage::ResetFromWallpaperItem( const SfxItemSet& rSet )
bLinkOnly = sal_True;
m_pBtnLink->Check( sal_True );
m_pBtnLink->Show( sal_False );
// if( !pItem || !pItem->GetWallpaper(sal_False).IsBitmap() )
// m_pBtnLink->Check();
delete pTemp;
}