diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-08-23 07:42:43 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-08-23 07:42:43 +0200 |
commit | b51dc041b5c4cdec2ba89984c38bc6d1f0cff178 (patch) | |
tree | 27ff09e6fa500f283f5154ecb957d26b2b017e94 /cui/source/tabpages/backgrnd.cxx | |
parent | 7d8b6c311f244fff5ae291c5b83aa2e81bbd44e7 (diff) |
cppcheck: reduce scope + remove commented lines
Change-Id: I51656a8bce5c2fdaf267582846ab82df838f05a6
Diffstat (limited to 'cui/source/tabpages/backgrnd.cxx')
-rw-r--r-- | cui/source/tabpages/backgrnd.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx index b1dae28a5301..4e002f8d0074 100644 --- a/cui/source/tabpages/backgrnd.cxx +++ b/cui/source/tabpages/backgrnd.cxx @@ -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; } |