summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-10-12 13:47:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-10-23 13:10:20 +0200
commit694562874b5b439cbace1b1f0ccb07c574f676a3 (patch)
treee94004733245c45e96c2b209582617c44091ef05 /sot
parentb30ee83058793ea8fbb020e5ac8f118bd20853d5 (diff)
fdo#46808, Adapt packages::manifest::ManifestReader UNO service to new style
The service already existed, it just did not have an IDL file. Change-Id: Idad85ab23f6650c89ba3095d10568a302503613b
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/ucbstorage.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index d1ff3c13285b..d314aae4023f 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -40,7 +40,7 @@
#include <com/sun/star/ucb/ContentInfoAttribute.hpp>
#include <com/sun/star/beans/Property.hpp>
#include <com/sun/star/packages/manifest/XManifestWriter.hpp>
-#include <com/sun/star/packages/manifest/XManifestReader.hpp>
+#include <com/sun/star/packages/manifest/ManifestReader.hpp>
#include <com/sun/star/ucb/InteractiveIOException.hpp>
#include <rtl/digest.h>
@@ -1780,9 +1780,8 @@ void UCBStorage_Impl::Init()
// create a manifest reader object that will read in the manifest from the stream
Reference < ::com::sun::star::packages::manifest::XManifestReader > xReader =
- Reference< ::com::sun::star::packages::manifest::XManifestReader >
- ( ::comphelper::getProcessServiceFactory()->createInstance(
- ::rtl::OUString("com.sun.star.packages.manifest.ManifestReader")), UNO_QUERY) ;
+ ::com::sun::star::packages::manifest::ManifestReader::create(
+ ::comphelper::getProcessComponentContext() ) ;
Sequence < Sequence < PropertyValue > > aProps = xReader->readManifestSequence( xInputStream );
// cleanup