summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-11-24 18:20:41 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-11-27 22:59:28 -0600
commit621cdc7a446e500a6c1b7fd417199be34cdaf3da (patch)
treecd75c013ac4a3ab30c4aebecd80b4f678282aaa1 /xmloff
parenta8fe23a16082deb749b0ad8bfef93ef90ef9ce07 (diff)
migrate user of InsertBlanks to OUString
Change-Id: Idc7379daf25a226622e5599124df2ab68b98902a
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/xmlnumfe.cxx9
1 files changed, 6 insertions, 3 deletions
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 );
}