From 1c84461b6601d24481a6aaf2b5ea10fc3c5c667e Mon Sep 17 00:00:00 2001 From: Harri Pitkänen Date: Thu, 14 Oct 2010 17:32:23 +0100 Subject: remove redundant null checks. --- svx/source/unodraw/unopage.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'svx/source/unodraw/unopage.cxx') 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(); -- cgit