diff options
-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; |