diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-17 18:23:42 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:47 +0100 |
commit | 87b9d323a26183131a1f9e6f0fab00a10ccda0ef (patch) | |
tree | 3a0bb8e07b689e4b2561687d98ad6ea9dae1c7fe /desktop/source/offacc | |
parent | c79fe32dadf83bf9f9b85c9d0a2589fe5c4f4cbd (diff) |
Some more loplugin:cstylecast: desktop
Change-Id: I1aeba8e1a8452d0329244d85c7c8cbd55353582f
Diffstat (limited to 'desktop/source/offacc')
-rw-r--r-- | desktop/source/offacc/acceptor.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx index 85b729c862f1..a84672904a0d 100644 --- a/desktop/source/offacc/acceptor.cxx +++ b/desktop/source/offacc/acceptor.cxx @@ -209,9 +209,10 @@ sal_Bool Acceptor::supportsService(OUString const & ServiceName) Reference< XInterface > Acceptor::impl_getInstance( const Reference< XMultiServiceFactory >& aFactory ) { try { - return (XComponent*) new Acceptor( comphelper::getComponentContext(aFactory) ); + return static_cast<cppu::OWeakObject *>( + new Acceptor(comphelper::getComponentContext(aFactory))); } catch ( const Exception& ) { - return (XComponent*) NULL; + return css::uno::Reference<css::uno::XInterface>(); } } |