diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-07 08:14:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-07 20:10:24 +0200 |
commit | f4e8244700adcbbf4f5c975a37520aa138ea7005 (patch) | |
tree | 18eed36e2cd37c182377c705e639eb736112bea6 /sfx2 | |
parent | 86cadd43f002959d6cfcb7b3e4066076f6d05997 (diff) |
rtl::Static -> function local static
Change-Id: If8d2ef2066f52bc287457e03f0e57df11d5cfc85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113714
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objxtor.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index 6c33cc54e325..d52bf51c3eed 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -91,7 +91,7 @@ using ::basic::BasicManagerRepository; namespace { -class theCurrentComponent : public rtl::Static< WeakReference< XInterface >, theCurrentComponent > {}; +WeakReference< XInterface > theCurrentComponent; #if HAVE_FEATURE_SCRIPTING @@ -861,7 +861,7 @@ sal_uInt16 SfxObjectShell::GetAutoStyleFilterIndex() const void SfxObjectShell::SetCurrentComponent( const Reference< XInterface >& _rxComponent ) { - WeakReference< XInterface >& rTheCurrentComponent = theCurrentComponent::get(); + WeakReference< XInterface >& rTheCurrentComponent = theCurrentComponent; Reference< XInterface > xOldCurrentComp(rTheCurrentComponent); if ( _rxComponent == xOldCurrentComp ) @@ -906,7 +906,7 @@ void SfxObjectShell::SetCurrentComponent( const Reference< XInterface >& _rxComp Reference< XInterface > SfxObjectShell::GetCurrentComponent() { - return theCurrentComponent::get(); + return theCurrentComponent; } |