diff options
Diffstat (limited to 'sd/source/ui/sidebar')
-rw-r--r-- | sd/source/ui/sidebar/MasterPageObserver.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/sidebar/MasterPageObserver.cxx b/sd/source/ui/sidebar/MasterPageObserver.cxx index 341c02cb090d..501d0f55ceac 100644 --- a/sd/source/ui/sidebar/MasterPageObserver.cxx +++ b/sd/source/ui/sidebar/MasterPageObserver.cxx @@ -279,11 +279,11 @@ void MasterPageObserver::Implementation::AnalyzeUsedMasterPages ( aOldMasterPagesDescriptor->second.begin(), aOldMasterPagesDescriptor->second.end(), std::back_inserter(aNewMasterPages)); - for (auto I=aNewMasterPages.begin(); I!=aNewMasterPages.end(); ++I) + for (auto& aNewMasterPage : aNewMasterPages) { MasterPageObserverEvent aEvent ( MasterPageObserverEvent::ET_MASTER_PAGE_ADDED, - *I); + aNewMasterPage); SendEvent (aEvent); } @@ -294,11 +294,11 @@ void MasterPageObserver::Implementation::AnalyzeUsedMasterPages ( aCurrentMasterPages.begin(), aCurrentMasterPages.end(), std::back_inserter(aRemovedMasterPages)); - for (auto I=aRemovedMasterPages.begin(); I!=aRemovedMasterPages.end(); ++I) + for (auto& aRemovedMasterPage : aRemovedMasterPages) { MasterPageObserverEvent aEvent ( MasterPageObserverEvent::ET_MASTER_PAGE_REMOVED, - *I); + aRemovedMasterPage); SendEvent (aEvent); } |