linguistic/source/gciterator.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ef6bf01f1b1d9b93bb306295f4723b52e4e1e5b4
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Mar 5 11:10:37 2023 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sun Mar 5 09:42:03 2023 +0000

    No need to use a clearable guard here
    
    Change-Id: I34a3aba881ae3591130fb3a0d7ae9eb768f615bd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148267
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 3f766264eee4..5bca138e6517 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -768,7 +768,7 @@ linguistic2::ProofreadingResult SAL_CALL 
GrammarCheckingIterator::checkSentenceA
 
             // ---- THREAD SAFE START ----
             {
-                ::osl::ClearableGuard< ::osl::Mutex > aGuard( MyMutex() );
+                ::osl::Guard< ::osl::Mutex > aGuard( MyMutex() );
                 aDocId = GetOrCreateDocId( xComponent );
                 nSuggestedEndOfSentencePos = GetSuggestedEndOfSentence( rText, 
nStartPos, aCurLocale );
                 DBG_ASSERT( nSuggestedEndOfSentencePos > nStartPos, 
"nSuggestedEndOfSentencePos calculation failed?" );

Reply via email to