From d3c008fb7e5d604bc09a23b79598734a7e506489 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 13 Aug 2013 13:26:49 +0200 Subject: convert include/svtools/rtfout.hxx from String to OUString and remove dead function. Change-Id: I0c2bf9409f747e98f9575c5861a8629435e27af4 --- svtools/source/svrtf/rtfout.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svtools/source/svrtf') 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; -- cgit