From d08578912f2c9ef42d4349079422e25b951e544e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 29 May 2012 17:17:28 +0200 Subject: fdo#46808, Adapt UNO services to new style, Part 7, updating ::create Update calls to factories to use new SimpleFileAccess::create method Change-Id: Ie5b0696fe2228a9033b19969245a53c21a61aa14 Signed-off-by: Stephan Bergmann , added some tweaks. --- svl/source/misc/sharecontrolfile.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'svl/source/misc') diff --git a/svl/source/misc/sharecontrolfile.cxx b/svl/source/misc/sharecontrolfile.cxx index 34d8b4a441b8..10e21f14a3ae 100644 --- a/svl/source/misc/sharecontrolfile.cxx +++ b/svl/source/misc/sharecontrolfile.cxx @@ -29,7 +29,8 @@ #include -#include +#include +#include #include #include #include @@ -360,10 +361,7 @@ void ShareControlFile::RemoveFile() Close(); - uno::Reference< lang::XMultiServiceFactory > xFactory = ::comphelper::getProcessServiceFactory(); - uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess > xSimpleFileAccess( - xFactory->createInstance( ::rtl::OUString("com.sun.star.ucb.SimpleFileAccess") ), - uno::UNO_QUERY_THROW ); + uno::Reference xSimpleFileAccess(ucb::SimpleFileAccess::create(comphelper::getProcessComponentContext())); xSimpleFileAccess->kill( m_aURL ); } -- cgit