[Libreoffice-commits] core.git: sfx2/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 1 08:47:59 UTC 2021
sfx2/source/control/bindings.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 21d14c51c2f07b795ba286430eb96cca0085f627
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Tue Jun 1 08:07:52 2021 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Tue Jun 1 10:47:10 2021 +0200
GetSlotServer can modify pImpl->pCaches
Change-Id: I39810a7f827f3624e26763f3e81eae2c64e656e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116455
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx
index aa565d9c4a96..23e640c8bf42 100644
--- a/sfx2/source/control/bindings.cxx
+++ b/sfx2/source/control/bindings.cxx
@@ -1079,10 +1079,10 @@ void SfxBindings::UpdateSlotServer_Impl()
pImpl->bContextChanged = true;
}
- for (std::unique_ptr<SfxStateCache>& pCache : pImpl->pCaches)
+ for (size_t i = 0; i < pImpl->pCaches.size(); ++i)
{
//GetSlotServer can modify pImpl->pCaches
- pCache->GetSlotServer(*pDispatcher, pImpl->xProv);
+ pImpl->pCaches[i]->GetSlotServer(*pDispatcher, pImpl->xProv);
}
pImpl->bMsgDirty = pImpl->bAllMsgDirty = false;
More information about the Libreoffice-commits
mailing list