diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-02 14:51:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-04 15:00:28 +0200 |
commit | 0fab2b1dcd13c0fb9d3bc82e5d8134afbd5ea237 (patch) | |
tree | 94b243f8917a0013d3f1334e82a56846d17c4390 | |
parent | df11dc76e6f085ee02d4dd7e341dbbfdc9573c42 (diff) |
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 <caolanm@redhat.com>
-rw-r--r-- | sw/source/filter/ascii/parasc.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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; |