linguistic/source/gciterator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c084a8f30d1a5b9416340ee4a557da896d069882 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sun Mar 5 11:11:33 2023 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sun Mar 5 09:18:57 2023 +0000 Swap instead of copy-assignment Change-Id: I5f54dad94cde60dd299f3db22c19a3565a2524a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148268 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index 1613b2dac36b..3f766264eee4 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -1106,7 +1106,7 @@ void GrammarCheckingIterator::GetConfiguredGCSvcs_Impl() { // ---- THREAD SAFE START ---- ::osl::Guard< ::osl::Mutex > aGuard( MyMutex() ); - m_aGCImplNamesByLang = aTmpGCImplNamesByLang; + m_aGCImplNamesByLang.swap(aTmpGCImplNamesByLang); // ---- THREAD SAFE END ---- } }