From fba41eff279df015d24cf8faee7d4ff85ef32fac Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 3 Mar 2022 11:55:06 +0200 Subject: assert more in SvxShape Change-Id: I98812e4cd70ced6d493f558844832e8c0c99b684 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130914 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/unodraw/unoshape.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx') diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 8ccfde1b8b12..cd301d7b5480 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -374,12 +374,12 @@ void SvxShape::Create( SdrObject* pNewObj, SvxDrawPage* /*pNewPage*/ ) { DBG_TESTSOLARMUTEX(); - OSL_PRECOND( pNewObj, "SvxShape::Create: invalid new object!" ); + assert( pNewObj && "SvxShape::Create: invalid new object!" ); if ( !pNewObj ) return; SdrObject* pCreatedObj = mpSdrObjectWeakReference.get(); - OSL_ENSURE( ( pCreatedObj == nullptr ) || ( pCreatedObj == pNewObj ), + assert( ( !pCreatedObj || ( pCreatedObj == pNewObj ) ) && "SvxShape::Create: the same shape used for two different objects?! Strange ..." ); // Correct condition (#i52126#) -- cgit