summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-10-15 09:59:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-10-23 14:16:09 +0200
commit8aa5946afeac9d86f84239bd7ef101493059c3f5 (patch)
treee3961b25b8702dc22a60aee07f0101d93b2d3b56 /sot
parent468acb7f521317dbededd0c31a6cfae979446104 (diff)
fdo#46808, Adapt packages::manifest::ManifestWriter UNO service to new style
The service already existed, it just did not have an IDL file Change-Id: I04c617a97262e9cc96af17fcae9cc084245c0149
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 d314aae4023f..c3158c5f3daf 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -39,7 +39,7 @@
#include <com/sun/star/ucb/ContentInfo.hpp>
#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/ManifestWriter.hpp>
#include <com/sun/star/packages/manifest/ManifestReader.hpp>
#include <com/sun/star/ucb/InteractiveIOException.hpp>
@@ -2366,9 +2366,8 @@ sal_Int16 UCBStorage_Impl::Commit()
// create a manifest writer object that will fill the stream
Reference < ::com::sun::star::packages::manifest::XManifestWriter > xWriter =
- Reference< ::com::sun::star::packages::manifest::XManifestWriter >
- ( ::comphelper::getProcessServiceFactory()->createInstance(
- ::rtl::OUString("com.sun.star.packages.manifest.ManifestWriter")), UNO_QUERY) ;
+ ::com::sun::star::packages::manifest::ManifestWriter::create(
+ ::comphelper::getProcessComponentContext() );
sal_Int32 nCount = GetObjectCount() + 1;
Sequence < Sequence < PropertyValue > > aProps( nCount );
sal_Int32 nProps = 0;