diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-19 11:36:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-19 14:11:50 +0100 |
commit | 447e5b4b36271b197660a9383a0f88c2761896c6 (patch) | |
tree | dfbdfcfacf2e890fe51db57684927f345c1a4acb /svtools/source/svhtml | |
parent | aae1b8ffade1ef0756899436497fa049b396fc26 (diff) |
death to some UniStrings
Change-Id: I0fa0c60e12c418d25f8bd96cc04c6abd74b1a608
Diffstat (limited to 'svtools/source/svhtml')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index 5427d86e521d..5d94f12a4040 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -519,7 +519,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak ) if( IsParserWorking() && !rInput.IsEof() ) { - String sEntity( sEntityBuffer.getStr(), nPos ); + rtl::OUString sEntity(sEntityBuffer.getStr(), nPos); cChar = GetHTMLCharName( sEntity ); // not found ( == 0 ): plain text @@ -533,8 +533,8 @@ int HTMLParser::ScanText( const sal_Unicode cBreak ) { nNextCh = sEntityBuffer[i]; sEntityBuffer.setLength( i ); - sEntity.Assign( sEntityBuffer.getStr(), i ); - cChar = GetHTMLCharName( sEntity ); + sEntity = rtl::OUString(sEntityBuffer.getStr(), i); + cChar = GetHTMLCharName( sEntity ); if( cChar ) { rInput.SeekRel( -(long) @@ -896,9 +896,7 @@ int HTMLParser::_GetNextRawToken() nNextCh = GetNextChar(); } - String aTok( sTmpBuffer.getStr(), - sal::static_int_cast< xub_StrLen >( - sTmpBuffer.getLength()) ); + String aTok( sTmpBuffer.toString() ); aTok.ToUpperAscii(); bool bDone = false; if( bReadScript || aEndToken.Len() ) |