diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-10-03 11:16:39 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-10-23 13:24:28 +0200 |
commit | f39d69f6b5bc6dad1112e9465e12395d9439effb (patch) | |
tree | 3d95f927c680e343e32ef43febcab8f7e49969be /oox | |
parent | c0c45cad415b2d091c632f3c2bc15103597db1f9 (diff) |
Remove few pointless OUString::number() and one method
Change-Id: I3e9a302a7513eebfeff07402f71fc3dde22e4cc2
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/core/xmlfilterbase.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx index 9516b82ff6e8..d5c3a2453a78 100644 --- a/oox/source/core/xmlfilterbase.cxx +++ b/oox/source/core/xmlfilterbase.cxx @@ -524,7 +524,7 @@ static void writeElement( FSHelperPtr pDoc, sal_Int32 nXmlElement, const sal_Int32 nValue ) { pDoc->startElement( nXmlElement, FSEND ); - pDoc->write( OUString::number( nValue ) ); + pDoc->write( nValue ); pDoc->endElement( nXmlElement ); } @@ -677,7 +677,7 @@ writeAppProperties( XmlFilterBase& rSelf, Reference< XDocumentProperties > xProp { sal_Int32 nValue = 0; if (it->second >>= nValue) - writeElement(pAppProps, XML_Paragraphs, OUString::number(nValue)); + writeElement(pAppProps, XML_Paragraphs, nValue); } uno::Reference<beans::XPropertyAccess> xUserDefinedProperties(xProperties->getUserDefinedProperties(), uno::UNO_QUERY); @@ -719,10 +719,9 @@ writeCustomProperties( XmlFilterBase& rSelf, Reference< XDocumentProperties > xP OString aName = OUStringToOString( aprop[n].Name, RTL_TEXTENCODING_ASCII_US ); // pid starts from 2 not from 1 as MS supports pid from 2 - OString pid = OUStringToOString( OUString::number(n + 2), RTL_TEXTENCODING_ASCII_US ); pAppProps->startElement( XML_property , XML_fmtid, "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}", - XML_pid, pid, + XML_pid, OString::number(n + 2), XML_name, aName, FSEND); |