diff options
author | Philipp Riemer <ruderphilipp@gmail.com> | 2014-01-06 16:56:15 +0100 |
---|---|---|
committer | Philipp Riemer <ruderphilipp@gmail.com> | 2014-01-06 16:58:32 +0100 |
commit | 62ab589282ad4fb96e1b8d1f9cc13090276f49ca (patch) | |
tree | 23852f162a7012958cb134c556f1c5da13e60399 /sw | |
parent | bf21fbf78567dc526d6dbc2f629d1a579b4c45e2 (diff) |
translate German variables nUnten, nOben, nMitte
Change-Id: Ib8a1a7dee98f39f3fe10c0244f1888ecc55e7ff3
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/wrong.cxx | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/sw/source/core/text/wrong.cxx b/sw/source/core/text/wrong.cxx index ade06ed43bb9..d4e6c6e236e1 100644 --- a/sw/source/core/text/wrong.cxx +++ b/sw/source/core/text/wrong.cxx @@ -185,10 +185,10 @@ sal_Int32 SwWrongList::NextWrong( sal_Int32 nChk ) const */ sal_uInt16 SwWrongList::GetWrongPos( sal_Int32 nValue ) const { - sal_uInt16 nOben = Count(); - sal_uInt16 nUnten = 0; + sal_uInt16 nMax = Count(); + sal_uInt16 nMin = 0; - if( nOben > 0 ) + if( nMax > 0 ) { // For smart tag lists, we may not use a binary search. We return the // position of the first smart tag which coveres nValue @@ -203,45 +203,45 @@ sal_uInt16 SwWrongList::GetWrongPos( sal_Int32 nValue ) const if ( nSTPos > nValue ) break; - ++nUnten; + ++nMin; } - return nUnten; + return nMin; } - --nOben; - sal_uInt16 nMitte = 0; - while( nUnten <= nOben ) + --nMax; + sal_uInt16 nMid = 0; + while( nMin <= nMax ) { - nMitte = nUnten + ( nOben - nUnten ) / 2; - const sal_Int32 nTmp = Pos( nMitte ); + nMid = nMin + ( nMax - nMin ) / 2; + const sal_Int32 nTmp = Pos( nMid ); if( nTmp == nValue ) { - nUnten = nMitte; + nMin = nMid; break; } else if( nTmp < nValue ) { - if( nTmp + Len( nMitte ) >= nValue ) + if( nTmp + Len( nMid ) >= nValue ) { - nUnten = nMitte; + nMin = nMid; break; } - nUnten = nMitte + 1; + nMin = nMid + 1; } - else if( nMitte == 0 ) + else if( nMid == 0 ) { break; } else - nOben = nMitte - 1; + nMax = nMid - 1; } } - // nUnten now points to an index i into the wrong list which + // nMin now points to an index i into the wrong list which // 1. nValue is inside [ Area[i].pos, Area[i].pos + Area[i].len ] (inclusive!!!) // 2. nValue < Area[i].pos - return nUnten; + return nMin; } void SwWrongList::_Invalidate( sal_Int32 nBegin, sal_Int32 nEnd ) |