summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmlfly.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-10 12:06:40 +0200
committerNoel Grandin <noel@peralex.com>2013-10-15 12:25:31 +0200
commite1cebdd841cd87f7b73b617eff0bc0d719ab95fd (patch)
treea733618589df44aa685dd749d2c465986bd16c75 /sw/source/filter/html/htmlfly.cxx
parent9285f8de9bc654dcb6a7de4891239276233adb2a (diff)
convert sw/source/filter/html/*.hxx from String to OUString
Change-Id: Idb409a930b2f93fc862fdd62352c38365751bd34
Diffstat (limited to 'sw/source/filter/html/htmlfly.cxx')
-rw-r--r--sw/source/filter/html/htmlfly.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/sw/source/filter/html/htmlfly.cxx b/sw/source/filter/html/htmlfly.cxx
index 2c03016018bf..f0de56120838 100644
--- a/sw/source/filter/html/htmlfly.cxx
+++ b/sw/source/filter/html/htmlfly.cxx
@@ -527,7 +527,7 @@ void SwHTMLWriter::OutFrmFmt( sal_uInt8 nMode, const SwFrmFmt& rFrmFmt,
OString SwHTMLWriter::OutFrmFmtOptions( const SwFrmFmt &rFrmFmt,
- const String& rAlternateTxt,
+ const OUString& rAlternateTxt,
sal_uInt32 nFrmOpts,
const OString &rEndTags )
{
@@ -559,7 +559,7 @@ OString SwHTMLWriter::OutFrmFmtOptions( const SwFrmFmt &rFrmFmt,
// ALT
- if( (nFrmOpts & HTML_FRMOPT_ALT) && rAlternateTxt.Len() )
+ if( (nFrmOpts & HTML_FRMOPT_ALT) && !rAlternateTxt.isEmpty() )
{
sOut.append(' ').append(OOO_STRING_SVTOOLS_HTML_O_alt).
append("=\"");
@@ -1646,28 +1646,28 @@ Writer& OutHTML_HeaderFooter( Writer& rWrt, const SwFrmFmt& rFrmFmt,
}
-void SwHTMLWriter::AddLinkTarget( const String& rURL )
+void SwHTMLWriter::AddLinkTarget( const OUString& rURL )
{
- if( !rURL.Len() || rURL.GetChar(0) != '#' )
+ if( rURL.isEmpty() || rURL[0] != '#' )
return;
// There might be a '|' as delimiter (if the link has been inserted
// freshly) or a '%7c' or a '%7C' if the document has been saved and
// loaded already.
- xub_StrLen nPos = rURL.Len();
+ xub_StrLen nPos = rURL.getLength();
sal_Bool bFound = sal_False, bEncoded = sal_False;
while( !bFound && nPos > 0 )
{
- sal_Unicode c = rURL.GetChar( --nPos );
+ sal_Unicode c = rURL[ --nPos ];
switch( c )
{
case cMarkSeparator:
bFound = sal_True;
break;
case '%':
- bFound = (rURL.Len() - nPos) >=3 &&
- rURL.GetChar( nPos+1 ) == '7' &&
- ((c =rURL.GetChar( nPos+2 )) == 'C' || c == 'c');
+ bFound = (rURL.getLength() - nPos) >=3 &&
+ rURL[ nPos+1 ] == '7' &&
+ ((c =rURL[ nPos+2 ]) == 'C' || c == 'c');
if( bFound )
bEncoded = sal_True;
}
@@ -1675,7 +1675,7 @@ void SwHTMLWriter::AddLinkTarget( const String& rURL )
if( !bFound || nPos < 2 ) // mindetsens "#a|..."
return;
- String aURL( rURL.Copy( 1 ) );
+ String aURL( rURL.copy( 1 ) );
// nPos-1+1/3 (-1 wg. Erase)
OUString sCmp(comphelper::string::remove(aURL.Copy(bEncoded ? nPos+2 : nPos),
@@ -1720,7 +1720,7 @@ void SwHTMLWriter::AddLinkTarget( const String& rURL )
aURL.Erase( nPos, 2 );
aURL.SetChar( nPos-1, cMarkSeparator );
}
- aOutlineMarks.insert( aOutlineMarks.begin()+nIns, new String( aURL ) );
+ aOutlineMarks.insert( aOutlineMarks.begin()+nIns, aURL );
}
}
else if( sCmp == "text" )