Kaydet (Commit) 06053398 authored tarafından Caolán McNamara's avatar Caolán McNamara

clang scan-build: Dead initialization

Change-Id: I74cd9086f949a0a964347d4e96911ceaaf812245
üst 4228f08d
......@@ -271,11 +271,10 @@ void ItemSetToTableParam( const SfxItemSet& rSet,
rSh.StartUndo( UNDO_TABLE_ATTR );
const SfxPoolItem* pItem = 0;
SwViewOption aUsrPref( *rSh.GetViewOptions() );
sal_uInt16 nBackgroundDestination = aUsrPref.GetTblDest();
if(SFX_ITEM_SET == rSet.GetItemState(SID_BACKGRND_DESTINATION, false, &pItem))
{
nBackgroundDestination = ((SfxUInt16Item*)pItem)->GetValue();
SwViewOption aUsrPref( *rSh.GetViewOptions() );
sal_uInt16 nBackgroundDestination = ((SfxUInt16Item*)pItem)->GetValue();
aUsrPref.SetTblDest((sal_uInt8)nBackgroundDestination);
SW_MOD()->ApplyUsrPref(aUsrPref, &rSh.GetView());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment