diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-11-25 17:08:45 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-11-25 17:12:34 +0100 |
commit | c16ba8a04fd4599e439e7e039705e41691c43acb (patch) | |
tree | 66a1c67973a674245548e10ff0746d1e473a7703 /sw/source/core/ole | |
parent | e9eaf033646695987e218907a565b555b976c5c8 (diff) |
Removed DBG_UTIL from sw
* Fixed the different dbglevel builds
* This needed to change all the sw local ASSERT to OSL_ENSURE...
Diffstat (limited to 'sw/source/core/ole')
-rw-r--r-- | sw/source/core/ole/ndole.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx index e72792083804..8cc24529919a 100644 --- a/sw/source/core/ole/ndole.cxx +++ b/sw/source/core/ole/ndole.cxx @@ -288,7 +288,7 @@ Graphic* SwOLENode::GetHCGraphic() SwCntntNode *SwOLENode::SplitCntntNode( const SwPosition & ) { // OLE-Objecte vervielfaeltigen ?? - ASSERT( FALSE, "OleNode: can't split." ); + OSL_ENSURE( FALSE, "OleNode: can't split." ); return this; } @@ -305,7 +305,7 @@ BOOL SwOLENode::RestorePersistentData() { // TODO/LATER: reicht hier nicht ein EmbeddedObjectContainer? Was passiert mit // diesem Dokument? - ASSERT( !this, "warum wird hier eine DocShell angelegt?" ); + OSL_ENSURE( !this, "warum wird hier eine DocShell angelegt?" ); p = new SwDocShell( GetDoc(), SFX_CREATE_MODE_INTERNAL ); p->DoInitNew( NULL ); } @@ -383,7 +383,7 @@ SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere, SwGrfFmtColl* pGrfColl, SwAttrSet* pAutoAttr ) { - ASSERT( pGrfColl,"SwNodes::MakeOLENode: Formatpointer ist 0." ); + OSL_ENSURE( pGrfColl,"SwNodes::MakeOLENode: Formatpointer ist 0." ); SwOLENode *pNode = new SwOLENode( rWhere, xObj, pGrfColl, pAutoAttr ); @@ -405,7 +405,7 @@ SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere, SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere, const String &rName, sal_Int64 nAspect, SwGrfFmtColl* pGrfColl, SwAttrSet* pAutoAttr ) { - ASSERT( pGrfColl,"SwNodes::MakeOLENode: Formatpointer ist 0." ); + OSL_ENSURE( pGrfColl,"SwNodes::MakeOLENode: Formatpointer ist 0." ); SwOLENode *pNode = new SwOLENode( rWhere, rName, nAspect, pGrfColl, pAutoAttr ); @@ -437,8 +437,8 @@ SwCntntNode* SwOLENode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const { // TODO/LATER: reicht hier nicht ein EmbeddedObjectContainer? Was passiert mit // diesem Dokument? - ASSERT( pDoc->GetRefForDocShell(), - "wo ist die Ref-Klasse fuer die DocShell?") + OSL_ENSURE( pDoc->GetRefForDocShell(), + "wo ist die Ref-Klasse fuer die DocShell?"); p = new SwDocShell( pDoc, SFX_CREATE_MODE_INTERNAL ); *pDoc->GetRefForDocShell() = p; p->DoInitNew( NULL ); @@ -746,7 +746,7 @@ void SwOLEObj::SetNode( SwOLENode* pNode ) { // TODO/LATER: reicht hier nicht ein EmbeddedObjectContainer? Was passiert mit // diesem Dokument? - ASSERT( !this, "warum wird hier eine DocShell angelegt?" ); + OSL_ENSURE( !this, "warum wird hier eine DocShell angelegt?" ); p = new SwDocShell( pDoc, SFX_CREATE_MODE_INTERNAL ); p->DoInitNew( NULL ); } @@ -781,10 +781,10 @@ uno::Reference < embed::XEmbeddedObject > SwOLEObj::GetOleRef() if( !xOLERef.is() ) { SfxObjectShell* p = pOLENd->GetDoc()->GetPersist(); - ASSERT( p, "kein SvPersist vorhanden" ); + OSL_ENSURE( p, "kein SvPersist vorhanden" ); uno::Reference < embed::XEmbeddedObject > xObj = p->GetEmbeddedObjectContainer().GetEmbeddedObject( aName ); - ASSERT( !xOLERef.is(), "rekursiver Aufruf von GetOleRef() ist nicht erlaubt" ) + OSL_ENSURE( !xOLERef.is(), "rekursiver Aufruf von GetOleRef() ist nicht erlaubt" ); if ( !xObj.is() ) { @@ -838,7 +838,7 @@ BOOL SwOLEObj::UnloadObject() { BOOL bRet = TRUE; //Nicht notwendig im Doc DTor (MM) - //ASSERT( pOLERef && pOLERef->Is() && 1 < (*pOLERef)->GetRefCount(), + // OSL_ENSURE( pOLERef && pOLERef->Is() && 1 < (*pOLERef)->GetRefCount(), // "Falscher RefCount fuers Unload" ); if ( pOLENd ) { |