diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/document.cxx | 2 | ||||
-rw-r--r-- | starmath/source/view.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 4009d6a8d5fd..738aac2bbb07 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -403,7 +403,7 @@ SfxItemPool& SmDocShell::GetEditEngineItemPool() { if (!pEditEngineItemPool) GetEditEngine(); - OSL_ENSURE( pEditEngineItemPool, "EditEngineItemPool missing" ); + assert(pEditEngineItemPool && "EditEngineItemPool missing"); return *pEditEngineItemPool; } diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index e60f22df460d..95a6a65686fb 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -2007,8 +2007,8 @@ void SmViewShell::Activate( bool bIsMDIActivate ) IMPL_LINK( SmViewShell, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg ) { - SAL_WARN_IF( !_pFileDlg, "starmath", "SmViewShell::DialogClosedHdl(): no file dialog" ); - SAL_WARN_IF( !pImpl->pDocInserter, "starmath", "ScDocShell::DialogClosedHdl(): no document inserter" ); + assert(_pFileDlg && "SmViewShell::DialogClosedHdl(): no file dialog"); + assert(pImpl->pDocInserter && "ScDocShell::DialogClosedHdl(): no document inserter"); if ( ERRCODE_NONE == _pFileDlg->GetError() ) { |