diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-07-16 16:14:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-07-16 17:27:14 +0100 |
commit | 508a99e50d942a4911374ae2daae05be996708fd (patch) | |
tree | 8add16021970c5a6618722d3335130d0b9b89d7d /starmath/source | |
parent | b3cd47bd562f98ec5fcff1a9d7609353506b5083 (diff) |
coverity#1209707 Dereference null return value
and
coverity#1209708 Dereference null return value
Change-Id: I3ba48950f989f8c49d1b09fde30de4c46f0bad1b
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/accessibility.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index f3c5996a3814..fbae1df88f16 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -980,7 +980,7 @@ OUString SmTextForwarder::GetText( const ESelection& rSel ) const SfxItemSet SmTextForwarder::GetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib ) const { EditEngine *pEditEngine = rEditAcc.GetEditEngine(); - OSL_ENSURE( pEditEngine, "EditEngine missing" ); + assert(pEditEngine && "EditEngine missing"); if( rSel.nStartPara == rSel.nEndPara ) { GetAttribsFlags nFlags = GetAttribsFlags::NONE; @@ -1010,7 +1010,7 @@ SfxItemSet SmTextForwarder::GetAttribs( const ESelection& rSel, EditEngineAttrib SfxItemSet SmTextForwarder::GetParaAttribs( sal_Int32 nPara ) const { EditEngine *pEditEngine = rEditAcc.GetEditEngine(); - OSL_ENSURE( pEditEngine, "EditEngine missing" ); + assert(pEditEngine && "EditEngine missing"); SfxItemSet aSet( pEditEngine->GetParaAttribs( nPara ) ); |