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