summaryrefslogtreecommitdiff
path: root/xmloff/source/meta/xmlversion.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/meta/xmlversion.cxx')
-rw-r--r--xmloff/source/meta/xmlversion.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/xmloff/source/meta/xmlversion.cxx b/xmloff/source/meta/xmlversion.cxx
index 08e92e00dd0a..27fca376f195 100644
--- a/xmloff/source/meta/xmlversion.cxx
+++ b/xmloff/source/meta/xmlversion.cxx
@@ -347,12 +347,9 @@ void SAL_CALL XMLVersionListPersistence::store( const uno::Reference< embed::XSt
if ( !xOut.is() )
throw uno::RuntimeException(); // the stream was successfully opened for writing already
- Reference< io::XActiveDataSource > xSrc( xWriter, uno::UNO_QUERY );
- xSrc->setOutputStream(xOut);
+ xWriter->setOutputStream(xOut);
- Reference< XDocumentHandler > xHandler( xWriter, uno::UNO_QUERY );
-
- rtl::Reference< XMLVersionListExport > xExp( new XMLVersionListExport( xContext, rVersions, sVerName, xHandler ) );
+ rtl::Reference< XMLVersionListExport > xExp( new XMLVersionListExport( xContext, rVersions, sVerName, xWriter ) );
xExp->exportDoc( ::xmloff::token::XML_VERSION );
@@ -370,10 +367,9 @@ uno::Sequence< util::RevisionTag > SAL_CALL XMLVersionListPersistence::load( con
css::uno::Sequence < css::util::RevisionTag > aVersions;
const OUString sDocName( XMLN_VERSIONSLIST );
- uno::Reference< container::XNameAccess > xRootNames( xRoot, uno::UNO_QUERY );
try {
- if ( xRootNames.is() && xRootNames->hasByName( sDocName ) && xRoot->isStreamElement( sDocName ) )
+ if ( xRoot.is() && xRoot->hasByName( sDocName ) && xRoot->isStreamElement( sDocName ) )
{
Reference< uno::XComponentContext > xContext = comphelper::getProcessComponentContext();