From 38187ec15b6cbaedcadcbd8f3bcb632a5c6be88f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Dec 2018 11:37:51 +0200 Subject: loplugin:singlevalfields extend to all static vars Change-Id: Ic238bb5291539fd1b7e98cb4afc9b25f37e7d528 Reviewed-on: https://gerrit.libreoffice.org/64710 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/classes/sbunoobj.cxx | 9 --------- basic/source/classes/sbxmod.cxx | 1 - 2 files changed, 10 deletions(-) (limited to 'basic/source/classes') diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index 21e57c5d206b..f3c276d88003 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -3657,15 +3657,6 @@ void SbUnoService::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) } -static SbUnoServiceCtor* pFirstCtor = nullptr; - -void clearUnoServiceCtors() -{ - SbUnoServiceCtor* pCtor = pFirstCtor; - if( pCtor ) - pCtor->SbxValue::Clear(); -} - SbUnoServiceCtor::SbUnoServiceCtor( const OUString& aName_, Reference< XServiceConstructorDescription > const & xServiceCtorDesc ) : SbxMethod( aName_, SbxOBJECT ) , m_xServiceCtorDesc( xServiceCtorDesc ) diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 8fb9d12a5ce0..db86e597b12b 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -973,7 +973,6 @@ static void ClearUnoObjectsInRTL_Impl( StarBASIC* pBasic ) { // #67781 Delete return values of the Uno-methods clearUnoMethods(); - clearUnoServiceCtors(); ClearUnoObjectsInRTL_Impl_Rek( pBasic ); -- cgit