diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-18 11:01:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-19 09:42:16 +0200 |
commit | adefb376c68692d0063b75e5946565e71c7cfcce (patch) | |
tree | 6b3fd392d714edb22900928a67e45fd0ee5f2866 | |
parent | 5a3290af0b4d0390190bbb00312824c0b9495cec (diff) |
cid#736794 dereference before null check
Change-Id: Ic7838b753757fd86fc2316475d38cbd3b4529de5
-rw-r--r-- | sc/source/ui/view/viewfun3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx index e77b3043038d..5b915c75aaf4 100644 --- a/sc/source/ui/view/viewfun3.cxx +++ b/sc/source/ui/view/viewfun3.cxx @@ -1383,7 +1383,7 @@ bool ScViewFunc::PasteFromClip( sal_uInt16 nFlags, ScDocument* pClipDoc, if ( nFlags & IDF_OBJECTS ) { - ScModelObj* pModelObj = ( pDocSh ? ScModelObj::getImplementation( pDocSh->GetModel() ) : NULL ); + ScModelObj* pModelObj = ScModelObj::getImplementation( pDocSh->GetModel() ); if ( pPage && pModelObj ) { bool bSameDoc = ( rClipParam.getSourceDocID() == pDoc->GetDocumentID() ); |