From a6496d03f69ae4a0140f78eff2d6f29a6fdb74da Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Mon, 24 Feb 2020 21:52:10 -0800 Subject: tdf#43157 Clean up OSL_ASSERT Change-Id: I23da49e2395a76eaa97c98757db16289e200a828 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89407 Tested-by: Jenkins Reviewed-by: Jens Carl --- sc/source/ui/unoobj/cellsuno.cxx | 2 +- sc/source/ui/unoobj/docuno.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source') diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index e1ffc7e9cf26..8a81f814a7e6 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -3228,7 +3228,7 @@ void ScCellRangesBase::ForceChartListener_Impl() for (auto const& it : rListeners) { ScChartListener *const p = it.second.get(); - OSL_ASSERT(p); + assert(p); if (p->GetUnoSource() == static_cast(this) && p->IsDirty()) p->Update(); } diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 75aa90ea9e6d..da8394343891 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -2861,7 +2861,7 @@ css::uno::Reference ScModelObj::create( ( pDocShell->GetCreateMode() == SfxObjectCreateMode::INTERNAL )); // this should never happen, i.e. the temporary document should never be // loaded, because this unlinks the data - OSL_ASSERT( bCreate ); + assert(bCreate); if ( !xRet.is() && bCreate ) { -- cgit