summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2024-02-08 18:55:44 +0900
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-02-14 10:06:52 +0100
commit5fec109a88b9833a005dd95892eec464a254d268 (patch)
tree6327ca25ec08a64fc639d6d6e2efc91801b5be4f
parentsc: add back protect cell tab from cell format dialog (diff)
downloadcore-5fec109a88b9833a005dd95892eec464a254d268.tar.gz
core-5fec109a88b9833a005dd95892eec464a254d268.zip
lok: remove unneeded mutex guard
Change-Id: I9e9ef3fd4ad43c2523c286f534e14e839aada453 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163114 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit 21c215a0345feb347c7adeea5aca766ede23f54a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163282 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--sfx2/source/view/lokhelper.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index 3cc4db8084bb..80bdb38aa13a 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -1142,11 +1142,9 @@ void LOKEditViewHistory::Update(bool bRemove)
if (!comphelper::LibreOfficeKit::isActive())
return;
- static std::mutex aMutex;
SfxViewShell* pViewShell = SfxViewShell::Current();
if (pViewShell)
{
- std::lock_guard<std::mutex> aLockGuard{aMutex};
int nDocId = pViewShell->GetDocId().get();
if (maEditViewHistory.find(nDocId) != maEditViewHistory.end())
maEditViewHistory[nDocId].remove(pViewShell);