summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unoshap2.cxx
diff options
context:
space:
mode:
authorHarri Pitkänen <hatapitk@iki.fi>2010-10-14 17:32:23 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-14 17:32:43 +0100
commit1c84461b6601d24481a6aaf2b5ea10fc3c5c667e (patch)
tree71e47e8459cd70cc3aaf04e5a306edbd3123c2f2 /svx/source/unodraw/unoshap2.cxx
parent2d3941f9f870249b002465d8cef8c2943f56227f (diff)
remove redundant null checks.
Diffstat (limited to 'svx/source/unodraw/unoshap2.cxx')
-rw-r--r--svx/source/unodraw/unoshap2.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx
index 7916f0956412..66584eeb7c11 100644
--- a/svx/source/unodraw/unoshap2.cxx
+++ b/svx/source/unodraw/unoshap2.cxx
@@ -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();