summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-12 09:53:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-12 09:53:41 +0000
commitb7a159ae76dbccc3312b7d1fd4e8530ef6557322 (patch)
treeb386e32d451c92964fd69aac95a8b8899fe4eef4 /svx
parentbccefa4b0bdb899a51793dbbe0ae8fb4a39b8f59 (diff)
DBG_ASSERT->SAL_WARN
Change-Id: I77646432f38cf65f487ff2f81c333be7a626be39
Diffstat (limited to 'svx')
-rw-r--r--svx/source/unodraw/unopage.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index 4d7525124c30..619b7ab08f03 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -81,9 +81,9 @@ SvxDrawPage::SvxDrawPage( SdrPage* pInPage ) throw()
SvxDrawPage::~SvxDrawPage() throw()
{
- DBG_ASSERT( mrBHelper.bDisposed, "SvxDrawPage must be disposed!" );
if( !mrBHelper.bDisposed )
{
+ SAL_WARN("svx", "SvxDrawPage must be disposed!");
acquire();
dispose();
}
@@ -394,8 +394,8 @@ namespace
// only in the given SdrPageView. It hasn't to be the visible SdrPageView.
void SvxDrawPage::_SelectObjectsInView( const Reference< drawing::XShapes > & aShapes, SdrPageView* pPageView ) throw ()
{
- DBG_ASSERT(pPageView,"SdrPageView is NULL! [CL]");
- DBG_ASSERT(mpView, "SdrView is NULL! [CL]");
+ SAL_WARN_IF(!pPageView, "svx", "SdrPageView is NULL!");
+ SAL_WARN_IF(!mpView, "svx", "SdrView is NULL!");
if(pPageView!=NULL && mpView!=NULL)
{
@@ -416,8 +416,8 @@ void SvxDrawPage::_SelectObjectsInView( const Reference< drawing::XShapes > & aS
// It hasn't to be the visible SdrPageView.
void SvxDrawPage::_SelectObjectInView( const Reference< drawing::XShape > & xShape, SdrPageView* pPageView ) throw()
{
- DBG_ASSERT(pPageView,"SdrPageView is NULL! [CL]");
- DBG_ASSERT(mpView, "SdrView is NULL! [CL]");
+ SAL_WARN_IF(!pPageView, "svx", "SdrPageView is NULL!");
+ SAL_WARN_IF(!mpView, "svx", "SdrView is NULL!");
if(pPageView!=NULL && mpView != NULL)
{
@@ -434,8 +434,8 @@ Reference< drawing::XShapeGroup > SAL_CALL SvxDrawPage::group( const Reference<
if( (mpModel == 0) || (mpPage == 0) )
throw lang::DisposedException();
- DBG_ASSERT(mpPage,"SdrPage is NULL! [CL]");
- DBG_ASSERT(mpView, "SdrView is NULL! [CL]");
+ SAL_WARN_IF(!mpPage , "svx", "SdrPage is NULL!");
+ SAL_WARN_IF(!mpView, "svx", "SdrView is NULL!");
Reference< ::com::sun::star::drawing::XShapeGroup > xShapeGroup;
if(mpPage==NULL||mpView==NULL||!xShapes.is())
@@ -472,8 +472,8 @@ void SAL_CALL SvxDrawPage::ungroup( const Reference< drawing::XShapeGroup >& aGr
if( (mpModel == 0) || (mpPage == 0) )
throw lang::DisposedException();
- DBG_ASSERT(mpPage,"SdrPage is NULL! [CL]");
- DBG_ASSERT(mpView, "SdrView is NULL! [CL]");
+ SAL_WARN_IF(!mpPage, "svx", "SdrPage is NULL!");
+ SAL_WARN_IF(!mpView, "svx", "SdrView is NULL!");
if(mpPage==NULL||mpView==NULL||!aGroup.is())
return;