summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/html/htmlex.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx
index ac9db8f6ed66..422cef0a55b5 100644
--- a/sd/source/filter/html/htmlex.cxx
+++ b/sd/source/filter/html/htmlex.cxx
@@ -1153,9 +1153,8 @@ bool HtmlExport::WriteHtml( const OUString& rFileName, bool bAddExtension, const
nErr = aFile.createStream(aFull , pStr);
if(nErr == ERRCODE_NONE)
{
- OString aStr(OUStringToOString(rHtmlData,
- RTL_TEXTENCODING_UTF8));
- pStr->WriteCharPtr( aStr.getStr() );
+ OString aStr(OUStringToOString(rHtmlData, RTL_TEXTENCODING_UTF8));
+ pStr->WriteOString( aStr );
aFile.close();
}
@@ -2891,9 +2890,8 @@ bool HtmlExport::CopyScript( const OUString& rPath, const OUString& rSource, con
nErr = aFile.createStream(aDest, pStr);
if(nErr == ERRCODE_NONE)
{
- OString aStr(OUStringToOString(aScript,
- RTL_TEXTENCODING_UTF8));
- pStr->WriteCharPtr( aStr.getStr() );
+ OString aStr(OUStringToOString(aScript, RTL_TEXTENCODING_UTF8));
+ pStr->WriteOString( aStr );
aFile.close();
}
}