summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/docnode')
-rw-r--r--sw/source/core/docnode/ndtbl.cxx4
-rw-r--r--sw/source/core/docnode/node.cxx2
-rw-r--r--sw/source/core/docnode/nodes.cxx2
-rw-r--r--sw/source/core/docnode/section.cxx2
-rw-r--r--sw/source/core/docnode/swbaslnk.cxx6
5 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 0faff49b1687..0b5476838530 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -2487,7 +2487,7 @@ void SwDoc::GetTabCols( SwTabCols &rFill, const SwCursor* pCrsr,
}
else if( !pCrsr && !pBoxFrm )
{
- OSL_ENSURE( !this, "One of them needs to be specified!" );
+ OSL_ENSURE( false, "One of them needs to be specified!" );
return ;
}
@@ -2701,7 +2701,7 @@ void SwDoc::SetTabCols( const SwTabCols &rNew, bool bCurRowOnly,
}
else if( !pCrsr && !pBoxFrm )
{
- OSL_ENSURE( !this, "One of them needs to be specified!" );
+ OSL_ENSURE( false, "One of them needs to be specified!" );
return ;
}
diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx
index c514f5445bdd..027a38c63cae 100644
--- a/sw/source/core/docnode/node.cxx
+++ b/sw/source/core/docnode/node.cxx
@@ -562,7 +562,7 @@ const SwPageDesc* SwNode::FindPageDesc( bool bCalcLay,
}
if( n >= rFmts.size() )
{
- OSL_ENSURE( !this, "FlySection, but no Format found" );
+ OSL_ENSURE( false, "FlySection, but no Format found" );
return 0;
}
}
diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx
index 8efb97775c71..032ddd5cb8ba 100644
--- a/sw/source/core/docnode/nodes.cxx
+++ b/sw/source/core/docnode/nodes.cxx
@@ -363,7 +363,7 @@ void SwNodes::ChgNode( SwNodeIndex& rDelPos, sal_uLong nSz,
if( !pFrmNd && aFrmNdIdx > rNds.GetEndOfExtras().GetIndex() )
{
- OSL_ENSURE( !this, "here, something wrong happened" );
+ OSL_ENSURE( false, "here, something wrong happened" );
aFrmNdIdx = rNds.GetEndOfContent();
pFrmNd = rNds.GoPrevSection( &aFrmNdIdx, true, false );
if( pFrmNd && !((SwCntntNode*)pFrmNd)->GetDepends() )
diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx
index ca563ac53ca4..000d2fddcd6d 100644
--- a/sw/source/core/docnode/section.cxx
+++ b/sw/source/core/docnode/section.cxx
@@ -1524,7 +1524,7 @@ void SwSection::CreateLink( LinkCreateType eCreateType )
}
break;
default:
- OSL_ENSURE( !this, "What kind of Link is this?" );
+ OSL_ENSURE( false, "What kind of Link is this?" );
}
switch( eCreateType )
diff --git a/sw/source/core/docnode/swbaslnk.cxx b/sw/source/core/docnode/swbaslnk.cxx
index 220c6a4f43f8..d7ea881fa22a 100644
--- a/sw/source/core/docnode/swbaslnk.cxx
+++ b/sw/source/core/docnode/swbaslnk.cxx
@@ -84,7 +84,7 @@ static void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem )
{
if( !pCntntNode )
{
- OSL_ENSURE(!this, "DataChanged without ContentNode" );
+ OSL_ENSURE(false, "DataChanged without ContentNode" );
return ERROR_GENERAL;
}
@@ -399,7 +399,7 @@ bool SwBaseLink::SwapIn( bool bWaitForData, bool bNativFormat )
if( bWaitForData && !GetObj() )
{
- OSL_ENSURE( !this, "The SvxFileObject was deleted in a GetData!" );
+ OSL_ENSURE( false, "The SvxFileObject was deleted in a GetData!" );
}
else
{
@@ -458,7 +458,7 @@ const SwNode* SwBaseLink::GetAnchor() const
}
}
- OSL_ENSURE( !this, "GetAnchor is not shadowed" );
+ OSL_ENSURE( false, "GetAnchor is not shadowed" );
return 0;
}