From 8dde1396f7c9aed30590bc7c55d3ac0e2252381f Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 22 Feb 2018 13:01:55 +0100 Subject: Fix build. Change-Id: I1048970fdfa431d20ff4f7861b7f1788aadedf4e Reviewed-on: https://gerrit.libreoffice.org/50173 Reviewed-by: Andras Timar Tested-by: Andras Timar --- oox/source/core/xmlfilterbase.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'oox') diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx index c858bd707e16..00d23a377564 100644 --- a/oox/source/core/xmlfilterbase.cxx +++ b/oox/source/core/xmlfilterbase.cxx @@ -51,7 +51,6 @@ #include "oox/helper/zipstorage.hxx" #include #include -#include #include #include #include @@ -69,6 +68,7 @@ #include #include #include +#include using ::com::sun::star::xml::dom::DocumentBuilder; using ::com::sun::star::xml::dom::XDocument; @@ -1013,7 +1013,7 @@ void XmlFilterBase::importCustomFragments(css::uno::Reference xCustDoc = importFragment("customXml/item" + OUString::number(i) + ".xml"); Reference xCustDocProps = importFragment("customXml/itemProps" + OUString::number(i) + ".xml"); - if (xCustDoc && xCustDocProps) + if (xCustDoc.is() && xCustDocProps.is()) { aCustomXmlDomList.emplace_back(xCustDoc); aCustomXmlDomPropsList.emplace_back(xCustDocProps); @@ -1082,7 +1082,7 @@ void XmlFilterBase::exportCustomFragments() const OUString fragmentPath = "customXml/item" + OUString::number((j+1)) + ".xml"; if (customXmlDom.is()) { - addRelation(oox::getRelationship(Relationship::CUSTOMXML), "../" + fragmentPath); + addRelation("http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", "../" + fragmentPath); uno::Reference serializer(customXmlDom, uno::UNO_QUERY); uno::Reference writer = xml::sax::Writer::create(comphelper::getProcessComponentContext()); @@ -1102,7 +1102,7 @@ void XmlFilterBase::exportCustomFragments() // Adding itemprops's relationship entry to item.xml.rels file addRelation(openFragmentStream(fragmentPath, "application/xml"), - oox::getRelationship(Relationship::CUSTOMXMLPROPS), + "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", "itemProps"+OUString::number((j+1))+".xml"); } } -- cgit