summaryrefslogtreecommitdiffstats
path: root/svl/source/misc/sharecontrolfile.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-05-29 17:17:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-06-06 10:01:22 +0200
commitd08578912f2c9ef42d4349079422e25b951e544e (patch)
treed029b5a9110bcdc255e72ef9c98887f3f8521ea6 /svl/source/misc/sharecontrolfile.cxx
parentMake setsdkenv_unix executable instead of configure.pl (diff)
downloadcore-d08578912f2c9ef42d4349079422e25b951e544e.tar.gz
core-d08578912f2c9ef42d4349079422e25b951e544e.zip
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 <sbergman@redhat.com>, added some tweaks.
Diffstat (limited to 'svl/source/misc/sharecontrolfile.cxx')
-rw-r--r--svl/source/misc/sharecontrolfile.cxx8
1 files changed, 3 insertions, 5 deletions
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 <stdio.h>
-#include <com/sun/star/ucb/XSimpleFileAccess.hpp>
+#include <com/sun/star/ucb/SimpleFileAccess.hpp>
+#include <com/sun/star/ucb/XSimpleFileAccess2.hpp>
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <com/sun/star/ucb/XContent.hpp>
#include <com/sun/star/ucb/InsertCommandArgument.hpp>
@@ -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<ucb::XSimpleFileAccess2> xSimpleFileAccess(ucb::SimpleFileAccess::create(comphelper::getProcessComponentContext()));
xSimpleFileAccess->kill( m_aURL );
}