diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-03-05 11:11:33 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-03-05 09:18:57 +0000 |
commit | c084a8f30d1a5b9416340ee4a557da896d069882 (patch) | |
tree | 2d603775f77c4034e8747b2ddd7e9d36420510c7 /linguistic | |
parent | 9f844b8917414345db4b599c7da9219532e31429 (diff) |
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.kaganski@collabora.com>
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/gciterator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ---- } } |