summaryrefslogtreecommitdiff
path: root/sw/source/filter/ascii/parasc.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-10-02 14:51:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-10-04 15:00:28 +0200
commit0fab2b1dcd13c0fb9d3bc82e5d8134afbd5ea237 (patch)
tree94b243f8917a0013d3f1334e82a56846d17c4390 /sw/source/filter/ascii/parasc.cxx
parentdf11dc76e6f085ee02d4dd7e341dbbfdc9573c42 (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>
Diffstat (limited to 'sw/source/filter/ascii/parasc.cxx')
-rw-r--r--sw/source/filter/ascii/parasc.cxx10
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;