sw: translate "Rekursiv"

Change-Id: Ib40dcbda3b2b9c8c196303f3f0c49e0ab05e0404
This commit is contained in:
Michael Stahl 2014-10-28 13:36:31 +01:00
parent 31ca7f6d71
commit f801b7f07d
2 changed files with 12 additions and 6 deletions

View file

@ -33,7 +33,7 @@ void SwCache::Check()
sal_uInt16 nCnt = 0;
bool bFirstFound = false;
SwCacheObj *pObj = pRealFirst;
SwCacheObj *pRekursive = pObj;
SwCacheObj *const pOldRealFirst = pRealFirst;
while ( pObj )
{
// the object must be found also when moving backwards
@ -48,7 +48,7 @@ void SwCache::Check()
if ( !pObj->GetNext() )
SAL_WARN_IF( pObj != pLast, "sw.core", "Last not Found." );
pObj = pObj->GetNext();
SAL_WARN_IF( pObj == pRekursive, "sw.core", "Recursion in SwCache." );
SAL_WARN_IF(pObj == pOldRealFirst, "sw.core", "Recursion in SwCache.");
}
SAL_WARN_IF( !bFirstFound, "sw.core", "First not Found." );
SAL_WARN_IF( nCnt + aFreePositions.size() != size(), "sw.core", "Lost Chain." );

View file

@ -3047,7 +3047,7 @@ static void lcl_ChgBoxSize( SwTableBox& rBox, CR_SetBoxWidth& rParam,
}
}
static bool lcl_DeleteBox_Rekursiv( CR_SetBoxWidth& rParam, SwTableBox& rBox,
static bool lcl_DeleteBox_Recursive( CR_SetBoxWidth& rParam, SwTableBox& rBox,
bool bCheck )
{
bool bRet = true;
@ -3075,9 +3075,13 @@ static bool lcl_DeleteBox_Rekursiv( CR_SetBoxWidth& rParam, SwTableBox& rBox,
{
SwTableLine& rLine = *rBox.GetTabLines()[ --i ];
for( sal_uInt16 n = rLine.GetTabBoxes().size(); n; )
if( !::lcl_DeleteBox_Rekursiv( rParam,
{
if (!::lcl_DeleteBox_Recursive( rParam,
*rLine.GetTabBoxes()[ --n ], bCheck ))
{
return false;
}
}
}
}
return bRet;
@ -3203,15 +3207,17 @@ static bool lcl_DelSelBox( SwTableLine* pTabLine, CR_SetBoxWidth& rParam,
COLFUZZY > std::abs( rParam.bLeft
? nWidth - nDist
: (nDist + nWidth - rParam.nTblWidth )))
|| !::lcl_DeleteBox_Rekursiv( rParam, *pBox, bCheck ) )
|| !::lcl_DeleteBox_Recursive(rParam, *pBox, bCheck))
{
return false;
}
if( pFmt->GetProtect().IsCntntProtected() )
return false;
}
else
{
::lcl_DeleteBox_Rekursiv( rParam, *pBox, bCheck );
::lcl_DeleteBox_Recursive(rParam, *pBox, bCheck);
if( !rParam.bLeft )
--n, --nCntEnd;