diff options
Diffstat (limited to 'sot/source/sdstor/ucbstorage.cxx')
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 7 |
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 |