avoid unnecessary OUString

This commit is contained in:
Miklos Vajna 2011-06-21 00:10:22 +02:00
parent 2b0526cf4f
commit 18df7b6b5a

View file

@ -592,8 +592,10 @@ int RTFDocumentImpl::dispatchSymbol(RTFKeyword nKeyword)
case RTF_PAR:
{
// end previous paragraph
OUString aStr = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\x0d"));
text(aStr);
Mapper().startCharacterGroup();
sal_uInt8 sParEnd[] = { 0xd };
Mapper().text(sParEnd, 1);
Mapper().endCharacterGroup();
Mapper().endParagraphGroup();
// start new one
Mapper().startParagraphGroup();