diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-05-02 18:00:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-02 19:33:14 +0200 |
commit | 6549aa9afa7f39b45a0d402d83f4975f37bcc2fb (patch) | |
tree | 289b30fe2cef993a0b22af25cd4837dd69e8c357 /svtools/source/svhtml | |
parent | 211a63a780659b404541cae619d10f204a8bfe65 (diff) |
sal_uLong->sal_uInt32 in SvParser
Change-Id: Ibe5599e1cc136330a8e9c089c7cc66d0ef4bc966
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115002
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/svhtml')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index 6796c6ca8738..d9f64c4541d9 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -134,7 +134,7 @@ void HTMLOption::GetNumbers( std::vector<sal_uInt32> &rNumbers ) const // This is a very simplified scanner: it only searches all // numerals in the string. bool bInNum = false; - sal_uLong nNum = 0; + sal_uInt32 nNum = 0; for( sal_Int32 i=0; i<aValue.getLength(); i++ ) { sal_Unicode c = aValue[ i ]; @@ -397,7 +397,7 @@ HtmlTokenId HTMLParser::ScanText( const sal_Unicode cBreak ) else { sal_uInt64 nStreamPos = rInput.Tell(); - sal_uLong nLinePos = GetLinePos(); + sal_uInt32 nLinePos = GetLinePos(); sal_uInt32 cChar = 0U; if( '#' == (nNextCh = GetNextChar()) ) @@ -515,7 +515,7 @@ HtmlTokenId HTMLParser::ScanText( const sal_Unicode cBreak ) static_cast<sal_uInt64>(nPos+1)*GetCharSize(), "Wrong stream position" ); DBG_ASSERT( nlLinePos-nLinePos == - static_cast<sal_uLong>(nPos+1), + static_cast<sal_uInt32>(nPos+1), "Wrong line position" ); rInput.Seek( nStreamPos ); nlLinePos = nLinePos; @@ -553,7 +553,7 @@ HtmlTokenId HTMLParser::ScanText( const sal_Unicode cBreak ) static_cast<sal_uInt64>(nPos+1)*GetCharSize(), "Wrong stream position" ); DBG_ASSERT( nlLinePos-nLinePos == - static_cast<sal_uLong>(nPos+1), + static_cast<sal_uInt32>(nPos+1), "Wrong line position" ); rInput.Seek( nStreamPos ); nlLinePos = nLinePos; @@ -810,8 +810,8 @@ HtmlTokenId HTMLParser::GetNextRawToken() // and remember position in stream. sal_uInt64 nStreamPos = rInput.Tell(); - sal_uLong nLineNr = GetLineNr(); - sal_uLong nLinePos = GetLinePos(); + sal_uInt32 nLineNr = GetLineNr(); + sal_uInt32 nLinePos = GetLinePos(); // Start of an end token? bool bOffState = false; @@ -1041,8 +1041,8 @@ HtmlTokenId HTMLParser::GetNextToken_() case '<': { sal_uInt64 nStreamPos = rInput.Tell(); - sal_uLong nLineNr = GetLineNr(); - sal_uLong nLinePos = GetLinePos(); + sal_uInt32 nLineNr = GetLineNr(); + sal_uInt32 nLinePos = GetLinePos(); bool bOffState = false; if( '/' == (nNextCh = GetNextChar()) ) @@ -1113,8 +1113,8 @@ HtmlTokenId HTMLParser::GetNextToken_() if( '>'!=nNextCh ) aToken += " "; sal_uInt64 nCStreamPos = 0; - sal_uLong nCLineNr = 0; - sal_uLong nCLinePos = 0; + sal_uInt32 nCLineNr = 0; + sal_uInt32 nCLinePos = 0; sal_Int32 nCStrLen = 0; bool bDone = false; @@ -1220,7 +1220,7 @@ HtmlTokenId HTMLParser::GetNextToken_() nRet = HtmlTokenId::UNKNOWNCONTROL_ON; sal_uInt64 nCStreamPos = rInput.Tell(); - sal_uLong nCLineNr = GetLineNr(), nCLinePos = GetLinePos(); + sal_uInt32 nCLineNr = GetLineNr(), nCLinePos = GetLinePos(); bool bDone = false; // Read until closing %>. If not found restart at first >. |