summaryrefslogtreecommitdiff
path: root/svtools/source/svrtf
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-06 23:43:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-07 11:18:39 +0100
commit930450f44e1d7b1f4490dea47c5825972490a74f (patch)
tree7700a44545af311b8f61ef28b0210fb3e04dc090 /svtools/source/svrtf
parentce30b112e3be46e5bab963af49abf13a2c7fb4ac (diff)
ByteString::CreateFromInt32->rtl::OString::valueOf
Diffstat (limited to 'svtools/source/svrtf')
-rw-r--r--svtools/source/svrtf/rtfout.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/svtools/source/svrtf/rtfout.cxx b/svtools/source/svrtf/rtfout.cxx
index 21368c0b14d3..d17148bd291a 100644
--- a/svtools/source/svrtf/rtfout.cxx
+++ b/svtools/source/svrtf/rtfout.cxx
@@ -141,11 +141,15 @@ SvStream& RTFOutFuncs::Out_Char(SvStream& rStream, sal_Unicode c,
// then write as unicode - character
if (*pUCMode != nLen)
{
- rStream << "\\uc" << ByteString::CreateFromInt32(nLen).GetBuffer() << " "; // #i47831# add an additional whitespace, so that "document whitespaces" are not ignored.;
+ // #i47831# add an additional whitespace, so that
+ // "document whitespaces" are not ignored.;
+ rStream << "\\uc"
+ << rtl::OString::valueOf(nLen).getStr() << " ";
*pUCMode = nLen;
}
- ByteString sNo(ByteString::CreateFromInt32(c));
- rStream << "\\u" << sNo.GetBuffer();
+ rStream << "\\u"
+ << rtl::OString::valueOf(
+ static_cast<sal_Int32>(c)).getStr();
}
for (sal_Int32 nI = 0; nI < nLen; ++nI)