sfx2/source/view/lokhelper.cxx | 2 --
1 file changed, 2 deletions(-)
New commits:
commit 5fec109a88b9833a005dd95892eec464a254d268
Author: Tomaž Vajngerl <[email protected]>
AuthorDate: Thu Feb 8 18:55:44 2024 +0900
Commit: Caolán McNamara <[email protected]>
CommitDate: Wed Feb 14 10:06:52 2024 +0100
lok: remove unneeded mutex guard
Change-Id: I9e9ef3fd4ad43c2523c286f534e14e839aada453
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163114
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Miklos Vajna <[email protected]>
(cherry picked from commit 21c215a0345feb347c7adeea5aca766ede23f54a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163282
Tested-by: Caolán McNamara <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
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);