diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-04 22:20:53 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-05 01:24:21 -0500 |
commit | 3405eb11dded8dc6c7e2463dfd83873d62528fbd (patch) | |
tree | 171d1ffae158a09bdddd0e954e0551be3c9c100a /sc/source/ui/unoobj/scdetect.cxx | |
parent | 3a959c78e996d5eb6125184dc76c33c8f2a25db3 (diff) |
Simplify_component_getFactory using the helper code from cppu.
Change-Id: I9d26b3523d4c6c22e0b26442ab3dfc479534f5bc
Diffstat (limited to 'sc/source/ui/unoobj/scdetect.cxx')
-rw-r--r-- | sc/source/ui/unoobj/scdetect.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx index a871e519293b..6bacac254177 100644 --- a/sc/source/ui/unoobj/scdetect.cxx +++ b/sc/source/ui/unoobj/scdetect.cxx @@ -74,7 +74,7 @@ using namespace ::com::sun::star::lang; using namespace ::com::sun::star::ucb; using ::rtl::OUString; -ScFilterDetect::ScFilterDetect( const uno::Reference<lang::XMultiServiceFactory>& /*xFactory*/ ) +ScFilterDetect::ScFilterDetect( const uno::Reference<uno::XComponentContext>& /*xContext*/ ) { } @@ -932,10 +932,9 @@ OUString ScFilterDetect::impl_getStaticImplementationName() } uno::Reference<uno::XInterface> ScFilterDetect::impl_createInstance( - const uno::Reference<lang::XMultiServiceFactory>& xServiceManager ) throw (uno::Exception) + const uno::Reference<uno::XComponentContext>& xContext ) throw (uno::Exception) { - return static_cast< cppu::OWeakObject * >( - new ScFilterDetect( xServiceManager ) ); + return static_cast<cppu::OWeakObject*>(new ScFilterDetect(xContext)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |