diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-07 08:07:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-08 08:06:45 +0200 |
commit | ae0cb395d8e2b887054e5cfd4fc5525a94fab240 (patch) | |
tree | 447facca919631537422f8fae621a9efec1beb07 /vcl | |
parent | 782bbfc65666272497f9c36a9c59d8b32231aa06 (diff) |
fdo#46808, Convert ZipFileAccess service to new style
Dropped XComponent from merged interface because noone is using it.
Change-Id: Id22c49e63679f42d86f617a919fdfd7cea4d5381
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/impimagetree.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/vcl/source/gdi/impimagetree.cxx b/vcl/source/gdi/impimagetree.cxx index 7a2fbdddb5db..a2cab8b4ad9b 100644 --- a/vcl/source/gdi/impimagetree.cxx +++ b/vcl/source/gdi/impimagetree.cxx @@ -31,6 +31,7 @@ #include "com/sun/star/io/XInputStream.hpp" #include "com/sun/star/lang/Locale.hpp" #include "com/sun/star/lang/XMultiServiceFactory.hpp" +#include "com/sun/star/packages/zip/ZipFileAccess.hpp" #include "com/sun/star/uno/Any.hxx" #include "com/sun/star/uno/Exception.hpp" #include "com/sun/star/uno/Reference.hxx" @@ -344,13 +345,11 @@ bool ImplImageTree::find( for (Paths::iterator i(m_paths.begin()); i != m_paths.end();) { if (!i->second.is()) { - css::uno::Sequence< css::uno::Any > args(1); - args[0] <<= i->first + ".zip"; try { i->second.set( - comphelper::getProcessServiceFactory()->createInstanceWithArguments( - OUString( "com.sun.star.packages.zip.ZipFileAccess"), - args), + css::packages::zip::ZipFileAccess::createWithURL( + comphelper::getProcessComponentContext(), + i->first + ".zip"), css::uno::UNO_QUERY_THROW); } catch (css::uno::RuntimeException &) { throw; |