diff options
-rw-r--r-- | xmloff/source/core/DomExport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/script/XMLEventExport.cxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/core/DomExport.cxx b/xmloff/source/core/DomExport.cxx index ca1190d6eaae..7e87c621aba2 100644 --- a/xmloff/source/core/DomExport.cxx +++ b/xmloff/source/core/DomExport.cxx @@ -129,7 +129,7 @@ void visitNode( DomVisitor& rVisitor, const Reference<XNode>& xNode ) void visit( DomVisitor& rVisitor, const Reference<XDocument>& xDocument ) { - visit( rVisitor, xDocument ); + visit( rVisitor, Reference<XNode>( xDocument, UNO_QUERY_THROW ) ); } void visit( DomVisitor& rVisitor, const Reference<XNode>& xNode ) diff --git a/xmloff/source/script/XMLEventExport.cxx b/xmloff/source/script/XMLEventExport.cxx index 4ddde6e61d82..e619d96a6db2 100644 --- a/xmloff/source/script/XMLEventExport.cxx +++ b/xmloff/source/script/XMLEventExport.cxx @@ -106,7 +106,8 @@ void XMLEventExport::Export( Reference<XEventsSupplier> & rSupplier, void XMLEventExport::Export( Reference<XNameReplace> & rReplace, sal_Bool bWhitespace) { - Export(rReplace, bWhitespace); + Reference<XNameAccess> xAccess(rReplace, UNO_QUERY); + Export(xAccess, bWhitespace); } void XMLEventExport::Export( Reference<XNameAccess> & rAccess, |