coverity#704372 Logically dead code

handled in earlier special case

Change-Id: I5f1a821504b899802a078d4c7b83eb7cc45e8f97
This commit is contained in:
Caolán McNamara
2014-03-22 19:14:05 +00:00
parent 4fecc8cb22
commit f2598f4356

View File

@@ -2212,9 +2212,6 @@ void SwDocStyleSheetPool::Replace( SfxStyleSheetBase& rSource,
pTargetFmt = ((SwDocStyleSheet&)rTarget).GetFrmFmt();
break;
case SFX_STYLE_FAMILY_PAGE:
if( bSwSrcPool )
pSourceFmt = &((SwDocStyleSheet&)rSource).GetPageDesc()
->GetMaster();
{
SwPageDesc *pDesc = rDoc.FindPageDescByName(
((SwDocStyleSheet&)rTarget).GetPageDesc()->GetName(),