diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-22 12:21:20 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-22 12:26:42 +0000 |
commit | ed0ffbba06f754eea1d37452dbdc684e8a4b72ad (patch) | |
tree | cc13ba09c9d360b416135dbf3375998522fd365d /basic | |
parent | c8587d05bd50c710fdbfae475aa495a8d46e6094 (diff) |
over-engineered thread-safe static OUString
This is a ridiculous over-engineered thread-safe static string for
something which is called so few times, and costs 1k of long-term
memory as the OUString dtor needs to be put into a callback
queue to get called at module unload time.
Just return a new string every time, *rolls eyes*
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/uno/dlgcont.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx index 3843039c52e1..fa99fe165b98 100644 --- a/basic/source/uno/dlgcont.cxx +++ b/basic/source/uno/dlgcont.cxx @@ -567,16 +567,7 @@ Sequence< OUString > SfxDialogLibraryContainer::getSupportedServiceNames_static( OUString SfxDialogLibraryContainer::getImplementationName_static() { - static OUString aImplName; - static sal_Bool bNeedsInit = sal_True; - - MutexGuard aGuard( Mutex::getGlobalMutex() ); - if( bNeedsInit ) - { - aImplName = OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.sfx2.DialogLibraryContainer")); - bNeedsInit = sal_False; - } - return aImplName; + return OUString("com.sun.star.comp.sfx2.DialogLibraryContainer"); } Reference< XInterface > SAL_CALL SfxDialogLibraryContainer::Create( const Reference< XComponentContext >& ) throw( Exception ) |