Kaydet (Commit) 1c84461b authored tarafından Harri Pitkänen's avatar Harri Pitkänen Kaydeden (comit) Michael Meeks

remove redundant null checks.

üst 2d3941f9
......@@ -330,8 +330,7 @@ void SAL_CALL SvxDrawPage::add( const uno::Reference< drawing::XShape >& xShape
if(pObj == NULL)
return;
if(pShape)
pShape->Create( pObj, this );
pShape->Create( pObj, this );
if( mpModel )
mpModel->SetChanged();
......
......@@ -249,8 +249,7 @@ void SAL_CALL SvxShapeGroup::add( const uno::Reference< drawing::XShape >& xShap
// Establish connection between new SdrObject and its wrapper before
// inserting the new shape into the group. There a new wrapper
// would be created when this connection would not already exist.
if(pShape)
pShape->Create( pSdrShape, mxPage.get() );
pShape->Create( pSdrShape, mxPage.get() );
if( mpModel )
mpModel->SetChanged();
......
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