summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-18 13:55:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-18 18:02:03 +0200
commit52112a1b8c778bf94534537978a36ba82d7cdf6c (patch)
treebcdc50667180c71125156df36100e7c5bd5e0203 /linguistic
parent8ffedca8f3751363b406ad5cadfe9ad8b5361560 (diff)
DicEntry doesn't need locking
it never modifies state Change-Id: I040ba1bff6ea0567b13bf9d06150caefdcdaa522 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134529 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/dicimp.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index 803445b4ef28..7eb18d64c635 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -503,8 +503,6 @@ int DictionaryNeo::cmpDicEntry(std::u16string_view rWord1,
std::u16string_view rWord2,
bool bSimilarOnly)
{
- MutexGuard aGuard( GetLinguMutex() );
-
// returns 0 if rWord1 is equal to rWord2
// " a value < 0 if rWord1 is less than rWord2
// " a value > 0 if rWord1 is greater than rWord2
@@ -1054,8 +1052,6 @@ void DicEntry::splitDicFileWord(const OUString &rDicFileWord,
OUString &rDicWord,
OUString &rReplacement)
{
- MutexGuard aGuard( GetLinguMutex() );
-
sal_Int32 nDelimPos = rDicFileWord.indexOf( "==" );
if (-1 != nDelimPos)
{
@@ -1075,19 +1071,16 @@ void DicEntry::splitDicFileWord(const OUString &rDicFileWord,
OUString SAL_CALL DicEntry::getDictionaryWord( )
{
- MutexGuard aGuard( GetLinguMutex() );
return aDicWord;
}
sal_Bool SAL_CALL DicEntry::isNegative( )
{
- MutexGuard aGuard( GetLinguMutex() );
return bIsNegativ;
}
OUString SAL_CALL DicEntry::getReplacementText( )
{
- MutexGuard aGuard( GetLinguMutex() );
return aReplacement;
}