summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-02-06 17:23:58 -0500
committerAshod Nakashian <ashnakash@gmail.com>2018-02-14 01:04:11 +0100
commit97a73d2772a86e26369fc32e25a59c0d5a274c01 (patch)
treefae4c3f1ac913437cff256a06bb086180232193d /comphelper
parent335a2b80fa900848a8b60d8fd5db6656bc30a95a (diff)
oox: cosmetic cleanup
Change-Id: Ifafd7338ddfec8b707b5ddf4acb39512faf186da Reviewed-on: https://gerrit.libreoffice.org/49325 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/xml/ofopxmlhelper.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/comphelper/source/xml/ofopxmlhelper.cxx b/comphelper/source/xml/ofopxmlhelper.cxx
index 205b8883c0d3..d3ce7b0dc65d 100644
--- a/comphelper/source/xml/ofopxmlhelper.cxx
+++ b/comphelper/source/xml/ofopxmlhelper.cxx
@@ -180,12 +180,12 @@ void WriteContentSequence(
xWriter->setOutputStream( xOutStream );
- OUString aTypesElement( "Types" );
- OUString aDefaultElement( "Default" );
- OUString aOverrideElement( "Override" );
- OUString aContentTypeAttr( "ContentType" );
- OUString aCDATAString( "CDATA" );
- OUString aWhiteSpace( " " );
+ static const OUString aTypesElement("Types");
+ static const OUString aDefaultElement("Default");
+ static const OUString aOverrideElement("Override");
+ static const OUString aContentTypeAttr("ContentType");
+ static const OUString aCDATAString("CDATA");
+ static const OUString aWhiteSpace(" ");
// write the namespace
AttributeList* pRootAttrList = new AttributeList;
@@ -380,15 +380,15 @@ void SAL_CALL OFOPXMLHelper_Impl::startElement( const OUString& aName, const uno
if ( m_aResultSeq.getLength() != 2 )
throw uno::RuntimeException();
- OUString aExtensionValue = xAttribs->getValueByName( m_aExtensionAttr );
+ const OUString aExtensionValue = xAttribs->getValueByName( m_aExtensionAttr );
if ( aExtensionValue.isEmpty() )
throw css::xml::sax::SAXException(); // TODO: the Extension value must present
- OUString aContentTypeValue = xAttribs->getValueByName( m_aContentTypeAttr );
+ const OUString aContentTypeValue = xAttribs->getValueByName( m_aContentTypeAttr );
if ( aContentTypeValue.isEmpty() )
throw css::xml::sax::SAXException(); // TODO: the ContentType value must present
- sal_Int32 nNewResultLen = m_aResultSeq[0].getLength() + 1;
+ const sal_Int32 nNewResultLen = m_aResultSeq[0].getLength() + 1;
m_aResultSeq[0].realloc( nNewResultLen );
m_aResultSeq[0][nNewResultLen-1].First = aExtensionValue;