diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-01 08:07:52 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-01 10:47:10 +0200 |
commit | 21d14c51c2f07b795ba286430eb96cca0085f627 (patch) | |
tree | c5c039091fd96916c275d07bd558b8934037e7a7 /sfx2 | |
parent | f3e1cc6eb5bf2f12c1783890bcd2be7d4aeb0abf (diff) |
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@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/bindings.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; |