diff options
Diffstat (limited to 'lingucomponent/source')
-rw-r--r-- | lingucomponent/source/languageguessing/guesslang.cxx | 12 | ||||
-rw-r--r-- | lingucomponent/source/numbertext/numbertext.cxx | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx index 98274af16d46..987642538f0e 100644 --- a/lingucomponent/source/languageguessing/guesslang.cxx +++ b/lingucomponent/source/languageguessing/guesslang.cxx @@ -161,7 +161,7 @@ Locale SAL_CALL LangGuess_Impl::guessPrimaryLanguage( ::sal_Int32 nStartPos, ::sal_Int32 nLen ) { - std::lock_guard aGuard( GetLangGuessMutex() ); + std::scoped_lock aGuard( GetLangGuessMutex() ); EnsureInitialized(); @@ -190,7 +190,7 @@ void LangGuess_Impl::SetFingerPrintsDB( uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getAvailableLanguages( ) { - std::lock_guard aGuard( GetLangGuessMutex() ); + std::scoped_lock aGuard( GetLangGuessMutex() ); EnsureInitialized(); @@ -212,7 +212,7 @@ uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getAvailableLanguages( ) uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getEnabledLanguages( ) { - std::lock_guard aGuard( GetLangGuessMutex() ); + std::scoped_lock aGuard( GetLangGuessMutex() ); EnsureInitialized(); @@ -234,7 +234,7 @@ uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getEnabledLanguages( ) uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getDisabledLanguages( ) { - std::lock_guard aGuard( GetLangGuessMutex() ); + std::scoped_lock aGuard( GetLangGuessMutex() ); EnsureInitialized(); @@ -257,7 +257,7 @@ uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getDisabledLanguages( ) void SAL_CALL LangGuess_Impl::disableLanguages( const uno::Sequence< Locale >& rLanguages ) { - std::lock_guard aGuard( GetLangGuessMutex() ); + std::scoped_lock aGuard( GetLangGuessMutex() ); EnsureInitialized(); @@ -278,7 +278,7 @@ void SAL_CALL LangGuess_Impl::disableLanguages( void SAL_CALL LangGuess_Impl::enableLanguages( const uno::Sequence< Locale >& rLanguages ) { - std::lock_guard aGuard( GetLangGuessMutex() ); + std::scoped_lock aGuard( GetLangGuessMutex() ); EnsureInitialized(); diff --git a/lingucomponent/source/numbertext/numbertext.cxx b/lingucomponent/source/numbertext/numbertext.cxx index 5b9a32a65196..f878a55f591c 100644 --- a/lingucomponent/source/numbertext/numbertext.cxx +++ b/lingucomponent/source/numbertext/numbertext.cxx @@ -112,7 +112,7 @@ void NumberText_Impl::EnsureInitialized() OUString SAL_CALL NumberText_Impl::getNumberText(const OUString& rText, const Locale& rLocale) { - std::lock_guard aGuard(GetNumberTextMutex()); + std::scoped_lock aGuard(GetNumberTextMutex()); EnsureInitialized(); // libnumbertext supports Language + Country tags (separated by "_" or "-") LanguageTag aLanguageTag(rLocale); @@ -142,7 +142,7 @@ OUString SAL_CALL NumberText_Impl::getNumberText(const OUString& rText, const Lo uno::Sequence<Locale> SAL_CALL NumberText_Impl::getAvailableLanguages() { - std::lock_guard aGuard(GetNumberTextMutex()); + std::scoped_lock aGuard(GetNumberTextMutex()); // TODO Sequence<css::lang::Locale> aRes; return aRes; |