summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-16 09:40:28 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-16 11:37:11 +0000
commit21a9bc8716a88fa2472c525b2e6f84fe1213a8f8 (patch)
treea162ac3df92c1f1dfef046ab6426ffc9ca5d2b7b /linguistic
parentb317d5fbb5a0a8dc695391de3f9f6ee339341987 (diff)
no need to take a mutex when only dealing with stack-local data
Change-Id: Ie45e626aad55a8174a53b769a98601bf54dedf65 Reviewed-on: https://gerrit.libreoffice.org/19979 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/convdic.cxx2
-rw-r--r--linguistic/source/convdiclist.cxx2
-rw-r--r--linguistic/source/dlistimp.cxx4
-rw-r--r--linguistic/source/hhconvdic.cxx2
-rw-r--r--linguistic/source/lngopt.cxx4
-rw-r--r--linguistic/source/lngsvcmgr.cxx3
-rw-r--r--linguistic/workben/sspellimp.cxx3
7 files changed, 0 insertions, 20 deletions
diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx
index aa60ac322227..d04e4f166f2c 100644
--- a/linguistic/source/convdic.cxx
+++ b/linguistic/source/convdic.cxx
@@ -651,7 +651,6 @@ void SAL_CALL ConvDic::removeFlushListener(
OUString SAL_CALL ConvDic::getImplementationName( )
throw (RuntimeException, std::exception)
{
- MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -664,7 +663,6 @@ sal_Bool SAL_CALL ConvDic::supportsService( const OUString& rServiceName )
uno::Sequence< OUString > SAL_CALL ConvDic::getSupportedServiceNames( )
throw (RuntimeException, std::exception)
{
- MutexGuard aGuard( GetLinguMutex() );
return getSupportedServiceNames_Static();
}
diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx
index 305b51c7ffc5..14b370336959 100644
--- a/linguistic/source/convdiclist.cxx
+++ b/linguistic/source/convdiclist.cxx
@@ -590,7 +590,6 @@ void SAL_CALL ConvDicList::removeEventListener(
OUString SAL_CALL ConvDicList::getImplementationName()
throw (RuntimeException, std::exception)
{
- MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -603,7 +602,6 @@ sal_Bool SAL_CALL ConvDicList::supportsService( const OUString& rServiceName )
uno::Sequence< OUString > SAL_CALL ConvDicList::getSupportedServiceNames()
throw (RuntimeException, std::exception)
{
- MutexGuard aGuard( GetLinguMutex() );
return getSupportedServiceNames_Static();
}
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx
index a3c798f00dff..15ed050b55d5 100644
--- a/linguistic/source/dlistimp.cxx
+++ b/linguistic/source/dlistimp.cxx
@@ -727,7 +727,6 @@ void DicList::SaveDics()
OUString SAL_CALL DicList::getImplementationName( ) throw(RuntimeException, std::exception)
{
- osl::MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -741,15 +740,12 @@ sal_Bool SAL_CALL DicList::supportsService( const OUString& ServiceName )
uno::Sequence< OUString > SAL_CALL DicList::getSupportedServiceNames( )
throw(RuntimeException, std::exception)
{
- osl::MutexGuard aGuard( GetLinguMutex() );
return getSupportedServiceNames_Static();
}
uno::Sequence< OUString > DicList::getSupportedServiceNames_Static() throw()
{
- osl::MutexGuard aGuard( GetLinguMutex() );
-
uno::Sequence< OUString > aSNS { "com.sun.star.linguistic2.DictionaryList" };
return aSNS;
}
diff --git a/linguistic/source/hhconvdic.cxx b/linguistic/source/hhconvdic.cxx
index 75125c9b48be..34ceecf1c9b5 100644
--- a/linguistic/source/hhconvdic.cxx
+++ b/linguistic/source/hhconvdic.cxx
@@ -113,7 +113,6 @@ void SAL_CALL HHConvDic::addEntry(
OUString SAL_CALL HHConvDic::getImplementationName( )
throw (RuntimeException, std::exception)
{
- MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -128,7 +127,6 @@ sal_Bool SAL_CALL HHConvDic::supportsService( const OUString& rServiceName )
uno::Sequence< OUString > SAL_CALL HHConvDic::getSupportedServiceNames( )
throw (RuntimeException, std::exception)
{
- MutexGuard aGuard( GetLinguMutex() );
return getSupportedServiceNames_Static();
}
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx
index 4df40e87be97..d43f9f0c2e93 100644
--- a/linguistic/source/lngopt.cxx
+++ b/linguistic/source/lngopt.cxx
@@ -424,7 +424,6 @@ void SAL_CALL
OUString SAL_CALL LinguProps::getImplementationName()
throw(RuntimeException, std::exception)
{
- MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -439,7 +438,6 @@ sal_Bool SAL_CALL LinguProps::supportsService( const OUString& ServiceName )
uno::Sequence< OUString > SAL_CALL LinguProps::getSupportedServiceNames()
throw(RuntimeException, std::exception)
{
- MutexGuard aGuard( GetLinguMutex() );
return getSupportedServiceNames_Static();
}
@@ -447,8 +445,6 @@ uno::Sequence< OUString > SAL_CALL LinguProps::getSupportedServiceNames()
uno::Sequence< OUString > LinguProps::getSupportedServiceNames_Static()
throw()
{
- MutexGuard aGuard( GetLinguMutex() );
-
uno::Sequence< OUString > aSNS { "com.sun.star.linguistic2.LinguProperties" };
return aSNS;
}
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index 2e479ecf4a58..a1c06675a51b 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -2026,7 +2026,6 @@ OUString SAL_CALL
LngSvcMgr::getImplementationName()
throw(uno::RuntimeException, std::exception)
{
- osl::MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -2043,7 +2042,6 @@ uno::Sequence< OUString > SAL_CALL
LngSvcMgr::getSupportedServiceNames()
throw(uno::RuntimeException, std::exception)
{
- osl::MutexGuard aGuard( GetLinguMutex() );
return getSupportedServiceNames_Static();
}
@@ -2051,7 +2049,6 @@ uno::Sequence< OUString > SAL_CALL
uno::Sequence< OUString > LngSvcMgr::getSupportedServiceNames_Static()
throw()
{
- osl::MutexGuard aGuard( GetLinguMutex() );
uno::Sequence< OUString > aSNS { "com.sun.star.linguistic2.LinguServiceManager" };
return aSNS;
}
diff --git a/linguistic/workben/sspellimp.cxx b/linguistic/workben/sspellimp.cxx
index 32b8686f0587..5310fe5dbde2 100644
--- a/linguistic/workben/sspellimp.cxx
+++ b/linguistic/workben/sspellimp.cxx
@@ -408,7 +408,6 @@ void SAL_CALL
OUString SAL_CALL SpellChecker::getImplementationName()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -422,7 +421,6 @@ sal_Bool SAL_CALL SpellChecker::supportsService( const OUString& ServiceName )
Sequence< OUString > SAL_CALL SpellChecker::getSupportedServiceNames()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
return getSupportedServiceNames_Static();
}
@@ -430,7 +428,6 @@ Sequence< OUString > SAL_CALL SpellChecker::getSupportedServiceNames()
Sequence< OUString > SpellChecker::getSupportedServiceNames_Static()
throw()
{
- MutexGuard aGuard( GetLinguMutex() );
Sequence< OUString > aSNS { SN_SPELLCHECKER };
return aSNS;
}