From b79fa59df33da81daf119a61d6dffdae232baf82 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 30 May 2018 15:19:16 +0200 Subject: remove cargo cult OSL_ENSURE(pFact, "ScAbstractFactory create fail!"( Possibly this was useful once upon a time, but now it's just noise. If it failed, we're going to crash on the next line when we call a method on that pointer anyway. Change-Id: Ic601f0c3344f6895f8a6ffb3bc6f8bcb45d00a92 Reviewed-on: https://gerrit.libreoffice.org/55082 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/dialog/grfflt.cxx | 6 ------ 1 file changed, 6 deletions(-) (limited to 'svx/source/dialog/grfflt.cxx') diff --git a/svx/source/dialog/grfflt.cxx b/svx/source/dialog/grfflt.cxx index ccc8e2148e99..3d7a7daf0df7 100644 --- a/svx/source/dialog/grfflt.cxx +++ b/svx/source/dialog/grfflt.cxx @@ -78,7 +78,6 @@ SvxGraphicFilterResult SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const if(pFact) { ScopedVclPtr aDlg(pFact->CreateGraphicFilterSmooth(pWindow, rGraphic, 0.7)); - DBG_ASSERT(aDlg, "Dialog creation failed!"); if( aDlg->Execute() == RET_OK ) aGraphic = aDlg->GetFilteredGraphic( rGraphic, 1.0, 1.0 ); } @@ -166,7 +165,6 @@ SvxGraphicFilterResult SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const if(pFact) { ScopedVclPtr aDlg(pFact->CreateGraphicFilterMosaic(pWindow, rGraphic)); - DBG_ASSERT(aDlg, "Dialog creation failed!"); if( aDlg->Execute() == RET_OK ) aGraphic = aDlg->GetFilteredGraphic( rGraphic, 1.0, 1.0 ); } @@ -179,7 +177,6 @@ SvxGraphicFilterResult SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const if(pFact) { ScopedVclPtr aDlg(pFact->CreateGraphicFilterEmboss(pWindow, rGraphic)); - DBG_ASSERT(aDlg, "Dialog creation failed!"); if( aDlg->Execute() == RET_OK ) aGraphic = aDlg->GetFilteredGraphic( rGraphic, 1.0, 1.0 ); } @@ -192,7 +189,6 @@ SvxGraphicFilterResult SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const if(pFact) { ScopedVclPtr aDlg(pFact->CreateGraphicFilterPoster(pWindow, rGraphic)); - DBG_ASSERT(aDlg, "Dialog creation failed!"); if( aDlg->Execute() == RET_OK ) aGraphic = aDlg->GetFilteredGraphic( rGraphic, 1.0, 1.0 ); } @@ -230,7 +226,6 @@ SvxGraphicFilterResult SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const if(pFact) { ScopedVclPtr aDlg(pFact->CreateGraphicFilterSepia(pWindow, rGraphic)); - DBG_ASSERT(aDlg, "Dialog creation failed!"); if( aDlg->Execute() == RET_OK ) aGraphic = aDlg->GetFilteredGraphic( rGraphic, 1.0, 1.0 ); } @@ -243,7 +238,6 @@ SvxGraphicFilterResult SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const if(pFact) { ScopedVclPtr aDlg(pFact->CreateGraphicFilterSolarize(pWindow, rGraphic)); - DBG_ASSERT(aDlg, "Dialog creation failed!"); if( aDlg->Execute() == RET_OK ) aGraphic = aDlg->GetFilteredGraphic( rGraphic, 1.0, 1.0 ); } -- cgit