sw/source/filter/ascii/parasc.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
New commits: commit 0fab2b1dcd13c0fb9d3bc82e5d8134afbd5ea237 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Oct 2 14:51:04 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Oct 4 15:00:28 2020 +0200 change these sal_uLong to sal_Size Change-Id: I5823283702b38d4b928cf0bee8645eafd10fe58f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103873 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/filter/ascii/parasc.cxx b/sw/source/filter/ascii/parasc.cxx index 73536d36213e..bc97ffd3b6b4 100644 --- a/sw/source/filter/ascii/parasc.cxx +++ b/sw/source/filter/ascii/parasc.cxx @@ -255,7 +255,7 @@ ErrCode SwASCIIParser::ReadChars() aEmpty.GetLanguage() == rOpt.GetLanguage() && aEmpty.GetParaFlags() == rOpt.GetParaFlags()) { - sal_uLong nLen, nOrig; + sal_Size nLen, nOrig; nOrig = nLen = rInput.ReadBytes(pArr.get(), ASC_BUFFLEN); rtl_TextEncoding eCharSet; LineEnd eLineEnd; @@ -297,7 +297,7 @@ ErrCode SwASCIIParser::ReadChars() } std::unique_ptr<sal_Unicode[]> aWork; - sal_uLong nArrOffset = 0; + sal_Size nArrOffset = 0; do { if( pStt >= pEnd ) @@ -306,7 +306,7 @@ ErrCode SwASCIIParser::ReadChars() InsertText( OUString( pLastStt )); // Read a new block - sal_uLong lGCount; + sal_Size lGCount; if( ERRCODE_NONE != rInput.GetError() || 0 == (lGCount = rInput.ReadBytes( pArr.get() + nArrOffset, ASC_BUFFLEN - nArrOffset ))) @@ -318,7 +318,7 @@ ErrCode SwASCIIParser::ReadChars() to convert this cycle includes them. If we found 0 following bytes then we ignore the previous partial character. */ - lGCount+=nArrOffset; + lGCount += nArrOffset; if( hConverter ) { @@ -354,7 +354,7 @@ ErrCode SwASCIIParser::ReadChars() if( bSwapUnicode ) { char* pF = pArr.get(), *pN = pArr.get() + 1; - for( sal_uLong n = 0; n < nChars; ++n, pF += 2, pN += 2 ) + for (sal_Size n = 0; n < nChars; ++n, pF += 2, pN += 2) { char c = *pF; *pF = *pN; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits