summaryrefslogtreecommitdiff
path: root/sw/source/core/bastyp/index.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/bastyp/index.cxx')
-rw-r--r--sw/source/core/bastyp/index.cxx48
1 files changed, 24 insertions, 24 deletions
diff --git a/sw/source/core/bastyp/index.cxx b/sw/source/core/bastyp/index.cxx
index a249a21ec2a6..bff41705d68a 100644
--- a/sw/source/core/bastyp/index.cxx
+++ b/sw/source/core/bastyp/index.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,19 +30,19 @@
#include "precompiled_sw.hxx"
-#include <stdlib.h> // fuer qsort
+#include <stdlib.h> // fuer qsort
#include <tools/solar.h>
-#include "errhdl.hxx" // fuers ASSERT
+#include "errhdl.hxx" // fuers ASSERT
#include "index.hxx"
-#include "error.h" // fuers ASSERT
+#include "error.h" // fuers ASSERT
#if OSL_DEBUG_LEVEL > 1
int SwIndex::nSerial = 0;
#endif
-TYPEINIT0(SwIndexReg); // rtti
+TYPEINIT0(SwIndexReg); // rtti
#ifdef CHK
@@ -76,12 +76,12 @@ void SwIndexReg::ChkArr()
}
}
-#else // CHK
+#else // CHK
#define IDX_CHK_ARRAY
#define ARR_CHK_ARRAY
-#endif // CHK
+#endif // CHK
@@ -91,7 +91,7 @@ SwIndex::SwIndex(SwIndexReg *const pArr, xub_StrLen const nIdx)
if( !pArray )
{
pArray = SwIndexReg::pEmptyIndexArray;
- nIndex = 0; // steht immer auf 0 !!!
+ nIndex = 0; // steht immer auf 0 !!!
}
if( !pArray->pFirst || !pArray->pLast ) // 1. Index ??
@@ -102,7 +102,7 @@ SwIndex::SwIndex(SwIndexReg *const pArr, xub_StrLen const nIdx)
ChgValue( *pArray->pFirst, nIdx );
#if OSL_DEBUG_LEVEL > 1
- MySerial = ++nSerial; // nur in der nicht PRODUCT-Version
+ MySerial = ++nSerial; // nur in der nicht PRODUCT-Version
#endif
IDX_CHK_ARRAY
}
@@ -114,7 +114,7 @@ SwIndex::SwIndex( const SwIndex& rIdx, short nIdx )
ChgValue( rIdx, rIdx.nIndex + nIdx );
#if OSL_DEBUG_LEVEL > 1
- MySerial = ++nSerial; // nur in der nicht PRODUCT-Version
+ MySerial = ++nSerial; // nur in der nicht PRODUCT-Version
#endif
IDX_CHK_ARRAY
}
@@ -125,7 +125,7 @@ SwIndex::SwIndex( const SwIndex& rIdx )
{
ChgValue( rIdx, rIdx.nIndex );
#if OSL_DEBUG_LEVEL > 1
- MySerial = ++nSerial; // nur in der nicht PRODUCT-Version
+ MySerial = ++nSerial; // nur in der nicht PRODUCT-Version
#endif
IDX_CHK_ARRAY
}
@@ -134,7 +134,7 @@ IDX_CHK_ARRAY
SwIndex& SwIndex::ChgValue( const SwIndex& rIdx, xub_StrLen nNewValue )
{
SwIndex* pFnd = (SwIndex*)&rIdx;
- if( rIdx.nIndex > nNewValue ) // nach vorne versuchen
+ if( rIdx.nIndex > nNewValue ) // nach vorne versuchen
{
SwIndex* pPrv;
while( 0 != ( pPrv = pFnd->pPrev ) && pPrv->nIndex > nNewValue )
@@ -208,7 +208,7 @@ SwIndex& SwIndex::ChgValue( const SwIndex& rIdx, xub_StrLen nNewValue )
pNext = rIdx.pNext;
pPrev->pNext = this;
- if( !pNext ) // im IndexArray als letzes
+ if( !pNext ) // im IndexArray als letzes
pArray->pLast = this;
else
pNext->pPrev = this;
@@ -244,11 +244,11 @@ IDX_CHK_ARRAY
/*************************************************************************
|*
-|* SwIndex & SwIndex::operator=( const SwIndex & aSwIndex )
+|* SwIndex & SwIndex::operator=( const SwIndex & aSwIndex )
|*
-|* Beschreibung
-|* Ersterstellung JP 07.11.90
-|* Letzte Aenderung JP 07.03.94
+|* Beschreibung
+|* Ersterstellung JP 07.11.90
+|* Letzte Aenderung JP 07.03.94
|*
*************************************************************************/
@@ -256,7 +256,7 @@ IDX_CHK_ARRAY
SwIndex& SwIndex::operator=( const SwIndex& rIdx )
{
int bEqual;
- if( rIdx.pArray != pArray ) // im alten abmelden !!
+ if( rIdx.pArray != pArray ) // im alten abmelden !!
{
Remove();
pArray = rIdx.pArray;
@@ -273,11 +273,11 @@ SwIndex& SwIndex::operator=( const SwIndex& rIdx )
/*************************************************************************
|*
-|* SwIndex &SwIndex::Assign
+|* SwIndex &SwIndex::Assign
|*
-|* Beschreibung
-|* Ersterstellung VB 25.03.91
-|* Letzte Aenderung JP 07.03.94
+|* Beschreibung
+|* Ersterstellung VB 25.03.91
+|* Letzte Aenderung JP 07.03.94
|*
*************************************************************************/
@@ -287,10 +287,10 @@ SwIndex& SwIndex::Assign( SwIndexReg* pArr, xub_StrLen nIdx )
if( !pArr )
{
pArr = SwIndexReg::pEmptyIndexArray;
- nIdx = 0; // steht immer auf 0 !!!
+ nIdx = 0; // steht immer auf 0 !!!
}
- if( pArr != pArray ) // im alten abmelden !!
+ if( pArr != pArray ) // im alten abmelden !!
{
Remove();
pArray = pArr;