svtools/source/svrtf/svparser.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
New commits: commit 4c3fc27ee68d9e4581f8131ba8eaa7d0c640cbda Author: Johnny_M <kla...@partyheld.de> Date: Sat Feb 17 14:21:31 2018 +0100 Translate German variable names Akt -> Current in svparser Change-Id: I6c883a7690ca518ea773a08ab093d5db323122f5 Reviewed-on: https://gerrit.libreoffice.org/49901 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> diff --git a/svtools/source/svrtf/svparser.cxx b/svtools/source/svrtf/svparser.cxx index c6d59c08eb04..4ba540ce96d9 100644 --- a/svtools/source/svrtf/svparser.cxx +++ b/svtools/source/svrtf/svparser.cxx @@ -517,28 +517,28 @@ T SvParser<T>::SkipToken( short nCnt ) // "skip" n Tokens backward template<typename T> typename SvParser<T>::TokenStackType* SvParser<T>::GetStackPtr( short nCnt ) { - sal_uInt8 nAktPos = sal_uInt8(pTokenStackPos - pTokenStack ); + sal_uInt8 nCurrentPos = sal_uInt8(pTokenStackPos - pTokenStack ); if( nCnt > 0 ) { if( nCnt >= nTokenStackSize ) nCnt = (nTokenStackSize-1); - if( nAktPos + nCnt < nTokenStackSize ) - nAktPos = sal::static_int_cast< sal_uInt8 >(nAktPos + nCnt); + if( nCurrentPos + nCnt < nTokenStackSize ) + nCurrentPos = sal::static_int_cast< sal_uInt8 >(nCurrentPos + nCnt); else - nAktPos = sal::static_int_cast< sal_uInt8 >( - nAktPos + (nCnt - nTokenStackSize)); + nCurrentPos = sal::static_int_cast< sal_uInt8 >( + nCurrentPos + (nCnt - nTokenStackSize)); } else if( nCnt < 0 ) { if( -nCnt >= nTokenStackSize ) nCnt = -nTokenStackSize+1; - if( -nCnt <= nAktPos ) - nAktPos = sal::static_int_cast< sal_uInt8 >(nAktPos + nCnt); + if( -nCnt <= nCurrentPos ) + nCurrentPos = sal::static_int_cast< sal_uInt8 >(nCurrentPos + nCnt); else - nAktPos = sal::static_int_cast< sal_uInt8 >( - nAktPos + (nCnt + nTokenStackSize)); + nCurrentPos = sal::static_int_cast< sal_uInt8 >( + nCurrentPos + (nCnt + nTokenStackSize)); } - return pTokenStack + nAktPos; + return pTokenStack + nCurrentPos; } // to read asynchronous from SvStream _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits