From 41772463ca1ab22b213dbf1cb7449ec695b2f457 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 7 Oct 2019 15:14:41 +0200 Subject: use cppu::WeakImplHelper in fileaccess::BaseContent Change-Id: I1a677ce5c3eed773c04709808d0d019a2f59585d Reviewed-on: https://gerrit.libreoffice.org/80425 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucb/source/ucp/file/bc.cxx | 51 ---------------------------------------------- 1 file changed, 51 deletions(-) (limited to 'ucb/source/ucp/file/bc.cxx') diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx index 34ce91c146f5..fe00d74c8533 100644 --- a/ucb/source/ucp/file/bc.cxx +++ b/ucb/source/ucp/file/bc.cxx @@ -126,43 +126,6 @@ BaseContent::~BaseContent( ) } -// XInterface - - -void SAL_CALL -BaseContent::acquire() - throw() -{ - OWeakObject::acquire(); -} - - -void SAL_CALL -BaseContent::release() - throw() -{ - OWeakObject::release(); -} - - -Any SAL_CALL -BaseContent::queryInterface( const Type& rType ) -{ - Any aRet = cppu::queryInterface( rType, - static_cast< lang::XComponent* >(this), - static_cast< lang::XTypeProvider* >(this), - static_cast< lang::XServiceInfo* >(this), - static_cast< XCommandProcessor* >(this), - static_cast< container::XChild* >(this), - static_cast< beans::XPropertiesChangeNotifier* >(this), - static_cast< beans::XPropertyContainer* >(this), - static_cast< XContentCreator* >(this), - static_cast< beans::XPropertySetInfoChangeNotifier* >(this), - static_cast< XContent* >(this) ); - return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); -} - - // XComponent @@ -241,20 +204,6 @@ BaseContent::getSupportedServiceNames() return ret; } -// XTypeProvider -XTYPEPROVIDER_IMPL_10( BaseContent, - lang::XComponent, - lang::XTypeProvider, - lang::XServiceInfo, - XCommandProcessor, - XContentCreator, - XContent, - container::XChild, - beans::XPropertiesChangeNotifier, - beans::XPropertyContainer, - beans::XPropertySetInfoChangeNotifier ) - - // XCommandProcessor -- cgit