summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unopage.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/unopage.cxx
parent2d3941f9f870249b002465d8cef8c2943f56227f (diff)
remove redundant null checks.
Diffstat (limited to 'svx/source/unodraw/unopage.cxx')
-rw-r--r--svx/source/unodraw/unopage.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index cc8cab2d9871..ad766a0c48ed 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -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();