summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svrtf/rtfout.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/svrtf/rtfout.cxx b/svtools/source/svrtf/rtfout.cxx
index 64a9a8b48c9f..8ed05f77e2b8 100644
--- a/svtools/source/svrtf/rtfout.cxx
+++ b/svtools/source/svrtf/rtfout.cxx
@@ -156,12 +156,12 @@ SvStream& RTFOutFuncs::Out_Char(SvStream& rStream, sal_Unicode c,
return rStream;
}
-SvStream& RTFOutFuncs::Out_String( SvStream& rStream, const String& rStr,
+SvStream& RTFOutFuncs::Out_String( SvStream& rStream, const OUString& rStr,
rtl_TextEncoding eDestEnc, sal_Bool bWriteHelpFile)
{
int nUCMode = 1;
- for (xub_StrLen n = 0; n < rStr.Len(); ++n)
- Out_Char(rStream, rStr.GetChar(n), &nUCMode, eDestEnc, bWriteHelpFile);
+ for (sal_Int32 n = 0; n < rStr.getLength(); ++n)
+ Out_Char(rStream, rStr[n], &nUCMode, eDestEnc, bWriteHelpFile);
if (nUCMode != 1)
rStream << "\\uc1"<< " "; // #i47831# add an additional whitespace, so that "document whitespaces" are not ignored.;
return rStream;