summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmlfly.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-15 15:33:07 +0200
committerNoel Grandin <noel@peralex.com>2013-10-18 09:59:14 +0200
commit111c843ce392b58a1dd0c675dd4ef214535d817c (patch)
tree9dfec13df606b0fae47f3fa84897a7d50d9eaa26 /sw/source/filter/html/htmlfly.cxx
parent76ef39f0377f6105f658b9867c8a496e565b2a3a (diff)
convert sw/source/filter/html/*.cxx from String to OUString
Change-Id: I2ec64f459dca9389d709ba0cdf20a5c1ef34ad18
Diffstat (limited to 'sw/source/filter/html/htmlfly.cxx')
-rw-r--r--sw/source/filter/html/htmlfly.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/sw/source/filter/html/htmlfly.cxx b/sw/source/filter/html/htmlfly.cxx
index f0de56120838..44ce5192c611 100644
--- a/sw/source/filter/html/htmlfly.cxx
+++ b/sw/source/filter/html/htmlfly.cxx
@@ -1675,10 +1675,10 @@ void SwHTMLWriter::AddLinkTarget( const OUString& rURL )
if( !bFound || nPos < 2 ) // mindetsens "#a|..."
return;
- String aURL( rURL.copy( 1 ) );
+ OUString aURL( rURL.copy( 1 ) );
// nPos-1+1/3 (-1 wg. Erase)
- OUString sCmp(comphelper::string::remove(aURL.Copy(bEncoded ? nPos+2 : nPos),
+ OUString sCmp(comphelper::string::remove(aURL.copy(bEncoded ? nPos+2 : nPos),
' '));
if( sCmp.isEmpty() )
return;
@@ -1694,8 +1694,7 @@ void SwHTMLWriter::AddLinkTarget( const OUString& rURL )
// Einfach nur in einem sortierten Array merken
if( bEncoded )
{
- aURL.Erase( nPos, 2 );
- aURL.SetChar( nPos-1, cMarkSeparator );
+ aURL = aURL.replaceAt( nPos - 1, 3, OUString(cMarkSeparator) );
}
aImplicitMarks.insert( aURL );
}
@@ -1703,7 +1702,7 @@ void SwHTMLWriter::AddLinkTarget( const OUString& rURL )
{
// Hier brauchen wir Position und Name. Deshalb sortieren wir
// ein sal_uInt16 und ein String-Array selbst
- String aOutline( aURL.Copy( 0, nPos-1 ) );
+ OUString aOutline( aURL.copy( 0, nPos-1 ) );
SwPosition aPos( *pCurPam->GetPoint() );
if( pDoc->GotoOutline( aPos, aOutline ) )
{
@@ -1717,8 +1716,7 @@ void SwHTMLWriter::AddLinkTarget( const OUString& rURL )
aOutlineMarkPoss.insert( aOutlineMarkPoss.begin()+nIns, nIdx );
if( bEncoded )
{
- aURL.Erase( nPos, 2 );
- aURL.SetChar( nPos-1, cMarkSeparator );
+ aURL = aURL.replaceAt( nPos - 1, 3, OUString(cMarkSeparator) );
}
aOutlineMarks.insert( aOutlineMarks.begin()+nIns, aURL );
}