sfx2/source/control/bindings.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 21d14c51c2f07b795ba286430eb96cca0085f627 Author: Mike Kaganski <[email protected]> AuthorDate: Tue Jun 1 08:07:52 2021 +0200 Commit: Mike Kaganski <[email protected]> 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 <[email protected]> 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; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
