diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-01-09 16:55:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-01-09 16:55:13 +0000 |
commit | 77846edf44512d48f21300bec0b75b94362774b2 (patch) | |
tree | a999cd6149f3550b12701b589f7fc0f9f5c1c48e /sw | |
parent | 91cbc10f380e752b95c5b71f596d68848533b132 (diff) |
OSL_ENSURE on p followed by deref -> assert
Change-Id: I4021053efbdaf1c04a9eb4c8fa52ef3da7b98b67
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/ole/ndole.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx index f17714c7b720..d508654ade10 100644 --- a/sw/source/core/ole/ndole.cxx +++ b/sw/source/core/ole/ndole.cxx @@ -772,7 +772,7 @@ const uno::Reference < embed::XEmbeddedObject > SwOLEObj::GetOleRef() if( !xOLERef.is() ) { SfxObjectShell* p = pOLENd->GetDoc()->GetPersist(); - OSL_ENSURE( p, "No SvPersist present" ); + assert(p && "No SvPersist present"); uno::Reference < embed::XEmbeddedObject > xObj = p->GetEmbeddedObjectContainer().GetEmbeddedObject( aName ); OSL_ENSURE( !xOLERef.is(), "Calling GetOleRef() recursively is not permitted" ); |