diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-28 12:21:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-06 08:51:22 +0200 |
commit | 296329a926877d069f55364a177d734f385ce7ae (patch) | |
tree | d95dff15946339b5a2df8c7c29159b97137ee30e /svtools | |
parent | ebeff1814cbecfba9bbeaeba8067b58f71703a39 (diff) |
convert xub_StrLen to sal_Int32
convert for loops using xub_StrLen to use sal_Int32
Change-Id: I5f635ca078966fefe938dbc7e8dea7c8d0d0b554
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index dd90ac37d79b..81d3584c8152 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -498,7 +498,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak ) else if( HTML_ISALPHA( nNextCh ) ) { OUStringBuffer sEntityBuffer( MAX_ENTITY_LEN ); - xub_StrLen nPos = 0L; + sal_Int32 nPos = 0L; do { sEntityBuffer.append( nNextCh ); @@ -520,7 +520,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak ) DBG_ASSERT( rInput.Tell() - nStreamPos == (sal_uLong)(nPos+1L)*GetCharSize(), "UTF-8 is failing here" ); - for( xub_StrLen i=nPos-1L; i>1L; i-- ) + for( sal_Int32 i = nPos-1; i>1; i-- ) { nNextCh = sEntityBuffer[i]; sEntityBuffer.setLength( i ); @@ -1899,14 +1899,12 @@ bool HTMLParser::IsHTMLFormat( const sal_Char* pHeader, if( 0xfe == (sal_uChar)pHeader[0] ) bUCS2B = true; - xub_StrLen nLen; - for( nLen = 2; - pHeader[nLen] != 0 || pHeader[nLen+1] != 0; - nLen+=2 ) - ; + sal_Int32 nLen = 2; + while( pHeader[nLen] != 0 || pHeader[nLen+1] != 0 ) + nLen += 2; OStringBuffer sTmp( (nLen - 2)/2 ); - for( xub_StrLen nPos = 2; nPos < nLen; nPos += 2 ) + for( sal_Int32 nPos = 2; nPos < nLen; nPos += 2 ) { sal_Unicode cUC; if( bUCS2B ) |