summaryrefslogtreecommitdiff
path: root/sw/source/filter
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter')
-rw-r--r--sw/source/filter/ww8/docxexport.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx
index 2a76ae0cfc40..17c77c4ae776 100644
--- a/sw/source/filter/ww8/docxexport.cxx
+++ b/sw/source/filter/ww8/docxexport.cxx
@@ -1225,7 +1225,7 @@ void DocxExport::WriteCustomXml()
uno::Reference< beans::XPropertySet > xPropSet( m_pDoc->GetDocShell()->GetBaseModel(), uno::UNO_QUERY_THROW );
uno::Reference< beans::XPropertySetInfo > xPropSetInfo = xPropSet->getPropertySetInfo();
- OUString aName = UNO_NAME_MISC_OBJ_INTEROPGRABBAG;
+ static const OUString aName = UNO_NAME_MISC_OBJ_INTEROPGRABBAG;
if ( !xPropSetInfo->hasPropertyByName( aName ) )
return;
@@ -1235,7 +1235,7 @@ void DocxExport::WriteCustomXml()
xPropSet->getPropertyValue( aName ) >>= propList;
for ( sal_Int32 nProp=0; nProp < propList.getLength(); ++nProp )
{
- OUString propName = propList[nProp].Name;
+ const OUString propName = propList[nProp].Name;
if ( propName == "OOXCustomXml" )
{
propList[nProp].Value >>= customXmlDomlist;
@@ -1253,11 +1253,11 @@ void DocxExport::WriteCustomXml()
}
}
- for (sal_Int32 j = 0; j < customXmlDomlist.getLength(); j++) {
-
+ for (sal_Int32 j = 0; j < customXmlDomlist.getLength(); j++)
+ {
uno::Reference<xml::dom::XDocument> customXmlDom = customXmlDomlist[j];
uno::Reference<xml::dom::XDocument> customXmlDomProps = customXmlDomPropslist[j];
- if ( customXmlDom.is() )
+ if (customXmlDom.is())
{
m_pFilter->addRelation( m_pDocumentFS->getOutputStream(),
oox::getRelationship(Relationship::CUSTOMXML),
@@ -1271,9 +1271,8 @@ void DocxExport::WriteCustomXml()
uno::Sequence< beans::StringPair >() );
}
- if ( customXmlDomProps.is() )
+ if (customXmlDomProps.is())
{
-
uno::Reference< xml::sax::XSAXSerializable > serializer( customXmlDomProps, uno::UNO_QUERY );
uno::Reference< xml::sax::XWriter > writer = xml::sax::Writer::create( comphelper::getProcessComponentContext() );
writer->setOutputStream( GetFilter().openFragmentStream( "customXml/itemProps"+OUString::number((j+1))+".xml",
@@ -1286,7 +1285,6 @@ void DocxExport::WriteCustomXml()
"application/xml" ) ,
oox::getRelationship(Relationship::CUSTOMXMLPROPS),
"itemProps"+OUString::number((j+1))+".xml" );
-
}
}
}