From af40ffdcef60c65437df4749c8bb2ad24356d1c2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 5 Sep 2013 12:02:59 +0200 Subject: convert include/editeng/svxrtf.hxx from String to OUString Change-Id: I4251db20727a987a36bbdb48e423aed95d3b9011 --- editeng/source/rtf/svxrtf.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'editeng') diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index a62554438f68..893c2d10ae7e 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -140,7 +140,7 @@ SvParserState SvxRTFParser::CallParser() bNewGroup = sal_False; nDfltFont = 0; - sBaseURL.Erase(); + sBaseURL = ""; // generate the correct WhichId table from the set WhichIds. BuildWhichTbl(); @@ -600,9 +600,9 @@ void SvxRTFParser::ReadOLEData() SvRTFParser::ReadOLEData(); } -String& SvxRTFParser::GetTextToEndGroup( String& rStr ) +OUString& SvxRTFParser::GetTextToEndGroup( OUString& rStr ) { - rStr.Erase( 0 ); + rStr = ""; int _nOpenBrakets = 1, nToken; // the first was already detected earlier!! while( _nOpenBrakets && IsParserWorking() ) @@ -666,7 +666,7 @@ void SvxRTFParser::ReadInfo( const sal_Char* pChkForVerNo ) int _nOpenBrakets = 1, nToken; // the first was already detected earlier!! DBG_ASSERT(m_xDocProps.is(), "SvxRTFParser::ReadInfo: no DocumentProperties"); - String sStr, sComment; + OUString sStr, sComment; long nVersNo = 0; while( _nOpenBrakets && IsParserWorking() ) @@ -758,7 +758,7 @@ void SvxRTFParser::ReadInfo( const sal_Char* pChkForVerNo ) } if( pChkForVerNo && - COMPARE_EQUAL == sComment.CompareToAscii( pChkForVerNo )) + sComment == OUString::createFromAscii( pChkForVerNo ) ) nVersionNo = nVersNo; SkipToken( -1 ); // the closing brace is evaluated "above" -- cgit