summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-18 15:02:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-19 09:30:21 +0200
commit8bfdbf5b7474596fe1d7d3318920c9a36f630201 (patch)
tree852d84615ae4343667d694530218493d94d40e50 /linguistic
parentd1dc27fef899ff6cd70873cd945d5312a53e1b3a (diff)
HyphenatedWord and PossibleHyphens do not need locking
they never modify any local (or global) state Change-Id: Ifcfb4f6bb30b1f21e61c5ffaeaad0d0292242760 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134535 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/hyphdta.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/linguistic/source/hyphdta.cxx b/linguistic/source/hyphdta.cxx
index 4d2a88266c07..d19d8834006e 100644
--- a/linguistic/source/hyphdta.cxx
+++ b/linguistic/source/hyphdta.cxx
@@ -70,43 +70,36 @@ HyphenatedWord::~HyphenatedWord()
OUString SAL_CALL HyphenatedWord::getWord()
{
- MutexGuard aGuard( GetLinguMutex() );
return aWord;
}
Locale SAL_CALL HyphenatedWord::getLocale()
{
- MutexGuard aGuard( GetLinguMutex() );
-
return LanguageTag::convertToLocale( nLanguage );
}
sal_Int16 SAL_CALL HyphenatedWord::getHyphenationPos()
{
- MutexGuard aGuard( GetLinguMutex() );
return nHyphenationPos;
}
OUString SAL_CALL HyphenatedWord::getHyphenatedWord()
{
- MutexGuard aGuard( GetLinguMutex() );
return aHyphenatedWord;
}
sal_Int16 SAL_CALL HyphenatedWord::getHyphenPos()
{
- MutexGuard aGuard( GetLinguMutex() );
return nHyphPos;
}
sal_Bool SAL_CALL HyphenatedWord::isAlternativeSpelling()
{
- MutexGuard aGuard( GetLinguMutex() );
return bIsAltSpelling;
}
@@ -129,28 +122,24 @@ PossibleHyphens::~PossibleHyphens()
OUString SAL_CALL PossibleHyphens::getWord()
{
- MutexGuard aGuard( GetLinguMutex() );
return aWord;
}
Locale SAL_CALL PossibleHyphens::getLocale()
{
- MutexGuard aGuard( GetLinguMutex() );
return LanguageTag::convertToLocale( nLanguage );
}
OUString SAL_CALL PossibleHyphens::getPossibleHyphens()
{
- MutexGuard aGuard( GetLinguMutex() );
return aWordWithHyphens;
}
Sequence< sal_Int16 > SAL_CALL PossibleHyphens::getHyphenationPositions()
{
- MutexGuard aGuard( GetLinguMutex() );
return aOrigHyphenPos;
}