diff options
author | Noel Grandin <noel@peralex.com> | 2012-05-29 17:17:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-06-06 10:01:22 +0200 |
commit | d08578912f2c9ef42d4349079422e25b951e544e (patch) | |
tree | d029b5a9110bcdc255e72ef9c98887f3f8521ea6 /writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx | |
parent | Make setsdkenv_unix executable instead of configure.pl (diff) | |
download | core-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 'writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx')
-rw-r--r-- | writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx b/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx index 9b2569a5f1d3..e9e16bcc62fa 100644 --- a/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx +++ b/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx @@ -345,10 +345,7 @@ sal_Int32 SAL_CALL ScannerTestService::run( const uno::Sequence< rtl::OUString > printf("C\n"); rtl::OUString arg=aArguments[0]; - uno::Reference<com::sun::star::ucb::XSimpleFileAccess> xFileAccess( - xFactory->createInstanceWithContext( - ::rtl::OUString("com.sun.star.ucb.SimpleFileAccess"), - xContext), uno::UNO_QUERY_THROW ); + uno::Reference<ucb::XSimpleFileAccess2> xFileAccess(ucb::SimpleFileAccess::create(xContext)); rtl_uString *dir=NULL; osl_getProcessWorkingDir(&dir); |