From 621cdc7a446e500a6c1b7fd417199be34cdaf3da Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud <nthiebaud@gmail.com> Date: Sat, 24 Nov 2012 18:20:41 -0600 Subject: migrate user of InsertBlanks to OUString Change-Id: Idc7379daf25a226622e5599124df2ab68b98902a --- xmloff/source/style/xmlnumfe.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index d33b2b77e5e4..0eb79339ca6e 100644 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -1261,12 +1261,15 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt { // text (literal or underscore) within the integer part of a number:number element - String aEmbeddedStr; + OUString aEmbeddedStr; if ( nElemType == NF_SYMBOLTYPE_STRING || nElemType == NF_SYMBOLTYPE_PERCENT ) + { aEmbeddedStr = *pElemStr; + } else + { SvNumberformat::InsertBlanks( aEmbeddedStr, 0, (*pElemStr)[1] ); - + } sal_Int32 nEmbedPos = nIntegerSymbols - nDigitsPassed; SvXMLEmbeddedTextEntry* pObj = new SvXMLEmbeddedTextEntry( nPos, nEmbedPos, aEmbeddedStr ); @@ -1334,7 +1337,7 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt // turn "_x" into the number of spaces used for x in InsertBlanks in the NumberFormat // (#i20396# the spaces may also be in embedded-text elements) - String aBlanks; + OUString aBlanks; SvNumberformat::InsertBlanks( aBlanks, 0, (*pElemStr)[1] ); AddToTextElement_Impl( aBlanks ); } -- cgit