4 related coverity issues, unused pointer value

coverity#708881, coverity#708882, coverity#708883,
coverity#708884

Change-Id: I8ddcb2f7b2b70dc92b8d0d5f66bf944edc57157e
This commit is contained in:
Noel Grandin
2014-02-07 12:12:38 +02:00
parent 7f2e336217
commit 160cc0f6a5

View File

@@ -1018,13 +1018,13 @@ void SwFrameShell::ExecFrameStyle(SfxRequest& rReq)
aBoxItem = aNewBox;
SvxBorderLine aDestBorderLine;
if ((pBorderLine = aBoxItem.GetTop()) != NULL)
if( aBoxItem.GetTop() != NULL )
aBoxItem.SetLine(&aBorderLine, BOX_LINE_TOP);
if ((pBorderLine = aBoxItem.GetBottom()) != NULL)
if( aBoxItem.GetBottom() != NULL )
aBoxItem.SetLine(&aBorderLine, BOX_LINE_BOTTOM);
if ((pBorderLine = aBoxItem.GetLeft()) != NULL)
if( aBoxItem.GetLeft() != NULL )
aBoxItem.SetLine(&aBorderLine, BOX_LINE_LEFT);
if ((pBorderLine = aBoxItem.GetRight()) != NULL)
if( aBoxItem.GetRight() != NULL )
aBoxItem.SetLine(&aBorderLine, BOX_LINE_RIGHT);
}
}