sw/source/core/doc/tblrwcl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 554c06b2f66ff7c26df0ac29f89894fff89eecd6 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Wed May 22 08:16:00 2024 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Wed May 22 11:05:03 2024 +0200 sw: Change OSL_ENSURE -> assert This fixes my local Windows/MSVC build that previously failed like this: C:/tools/cygwin/home/user/development/git/libreoffice/sw/source/core/doc/tblrwcl.cxx(3187): error C2220: the following warning is treated as an error C: ools make[1]: *** [C:/tools/cygwin/home/user/development/git/libreoffice/solenv/gbuild/LinkTarget.mk:338: C:/tools/cygwin/home/user/development/git/libreoffice/workdir/CxxObject/sw/source/core/doc/tblrwcl.o] Error 2 make: *** [Makefile:294: build] Error 2 Change-Id: I50faeba555d307ec27d1dccec7dbc3034c543830 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167918 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx index b13dc38ebcef..38c5074f0e89 100644 --- a/sw/source/core/doc/tblrwcl.cxx +++ b/sw/source/core/doc/tblrwcl.cxx @@ -3100,7 +3100,7 @@ bool SwTable::SetRowHeight( SwTableBox& rCurrentBox, TableChgWidthHeightType eTy for( auto n = nStt; n < nEnd; ++n ) { SwLayoutFrame* pLineFrame = GetRowFrame( *(*pLines)[ n ] ); - OSL_ENSURE( pLineFrame, "Where is the Frame from the SwTableLine??" ); + assert(pLineFrame && "Where is the Frame from the SwTableLine??"); aParam.nMaxSpace += CalcRowRstHeight( pLineFrame ); aParam.nMaxHeight += pLineFrame->getFrameArea().Height(); }