diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-03-03 23:35:34 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-03-04 20:29:53 +0100 |
commit | 9211b3001fca6e22b9ed6034e3cd661a6df3b6f6 (patch) | |
tree | cc8c1923ce1d4f2699e7dff4aa9da6909513d207 /sw | |
parent | 98fd4a896f62eb81929a7c67de4a55dffdce1b69 (diff) |
sw: translate german comments in ndhints.cxx
Change-Id: Ie33be6872b8b6c5bdd1481205ff2930b40438dff
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/txtnode/ndhints.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/sw/source/core/txtnode/ndhints.cxx b/sw/source/core/txtnode/ndhints.cxx index 01e6f901cf1e..9d727a497604 100644 --- a/sw/source/core/txtnode/ndhints.cxx +++ b/sw/source/core/txtnode/ndhints.cxx @@ -27,9 +27,8 @@ #include <set> #endif -// Sortierreihenfolge: Start, Ende (umgekehrt!), Which-Wert (umgekehrt!), -// als letztes die Adresse selbst - +/// sort order: Start, End (reverse), Which (reverse), +/// (char style: sort number), at last the pointer static bool lcl_IsLessStart( const SwTextAttr &rHt1, const SwTextAttr &rHt2 ) { if ( rHt1.GetStart() == rHt2.GetStart() ) @@ -62,7 +61,8 @@ static bool lcl_IsLessStart( const SwTextAttr &rHt1, const SwTextAttr &rHt2 ) return ( rHt1.GetStart() < rHt2.GetStart() ); } -// Zuerst nach Ende danach nach Ptr +/// sort order: End (reverse), Start, Which (reverse), +/// (char style: sort number), at last the pointer static bool lcl_IsLessEnd( const SwTextAttr &rHt1, const SwTextAttr &rHt2 ) { const sal_Int32 nHt1 = *rHt1.GetAnyEnd(); @@ -144,7 +144,7 @@ bool SwpHints::Contains( const SwTextAttr *pHt ) const bool SwpHints::Check(bool bPortionsMerged) const { - // 1) gleiche Anzahl in beiden Arrays + // 1) both arrays have same size CHECK_ERR( m_HintsByStart.size() == m_HintsByEnd.size(), "HintsCheck: wrong sizes" ); sal_Int32 nLastStart = 0; @@ -172,49 +172,49 @@ bool SwpHints::Check(bool bPortionsMerged) const for( size_t i = 0; i < Count(); ++i ) { - // --- Start-Kontrolle --- + // --- check Starts --- - // 2a) gueltiger Pointer? vgl. DELETEFF + // 2a) valid pointer? depends on overwriting freed mem with 0xFF const SwTextAttr *pHt = m_HintsByStart[i]; CHECK_ERR( 0xFF != *reinterpret_cast<unsigned char const *>(pHt), "HintsCheck: start ptr was deleted" ); - // 3a) Stimmt die Start-Sortierung? + // 3a) start sort order? sal_Int32 nIdx = pHt->GetStart(); CHECK_ERR( nIdx >= nLastStart, "HintsCheck: starts are unsorted" ); - // 4a) IsLessStart-Konsistenz + // 4a) IsLessStart consistency if( pLastStart ) CHECK_ERR( lcl_IsLessStart( *pLastStart, *pHt ), "HintsCheck: IsLastStart" ); nLastStart = nIdx; pLastStart = pHt; - // --- End-Kontrolle --- + // --- check Ends --- // 2b) gueltiger Pointer? vgl. DELETEFF const SwTextAttr *pHtEnd = m_HintsByEnd[i]; CHECK_ERR( 0xFF != *reinterpret_cast<unsigned char const *>(pHtEnd), "HintsCheck: end ptr was deleted" ); - // 3b) Stimmt die End-Sortierung? + // 3b) end sort order? nIdx = *pHtEnd->GetAnyEnd(); CHECK_ERR( nIdx >= nLastEnd, "HintsCheck: ends are unsorted" ); - // 4b) IsLessEnd-Konsistenz + // 4b) IsLessEnd consistency if( pLastEnd ) CHECK_ERR( lcl_IsLessEnd( *pLastEnd, *pHtEnd ), "HintsCheck: IsLastEnd" ); nLastEnd = nIdx; pLastEnd = pHtEnd; - // --- Ueberkreuzungen --- + // --- cross checks --- - // 5) gleiche Pointer in beiden Arrays + // 5) same pointers in both arrays if (m_HintsByStart.find(const_cast<SwTextAttr*>(pHt)) == m_HintsByStart.end()) nIdx = COMPLETE_STRING; CHECK_ERR( COMPLETE_STRING != nIdx, "HintsCheck: no GetStartOf" ); - // 6) gleiche Pointer in beiden Arrays + // 6) same pointers in both arrays if (m_HintsByEnd.find(const_cast<SwTextAttr*>(pHt)) == m_HintsByEnd.end()) nIdx = COMPLETE_STRING; |