summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/Theme.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/sidebar/Theme.cxx')
-rw-r--r--sfx2/source/sidebar/Theme.cxx30
1 files changed, 7 insertions, 23 deletions
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx
index a6587a493a50..90911f159efa 100644
--- a/sfx2/source/sidebar/Theme.cxx
+++ b/sfx2/source/sidebar/Theme.cxx
@@ -350,21 +350,13 @@ void SAL_CALL Theme::disposing()
const lang::EventObject aEvent (static_cast<XWeak*>(this));
- for (ChangeListeners::const_iterator
- iContainer(aListeners.begin()),
- iContainerEnd(aListeners.end());
- iContainer != iContainerEnd;
- ++iContainer)
+ for (const auto& rContainer : aListeners)
{
- for (ChangeListenerContainer::const_iterator
- iListener(iContainer->second.begin()),
- iEnd(iContainer->second.end());
- iListener!=iEnd;
- ++iListener)
+ for (const auto& rxListener : rContainer.second)
{
try
{
- (*iListener)->disposing(aEvent);
+ rxListener->disposing(aEvent);
}
catch(const Exception&)
{
@@ -934,13 +926,9 @@ bool Theme::DoVetoableListenersVeto (
VetoableListenerContainer aListeners (*pListeners);
try
{
- for (VetoableListenerContainer::const_iterator
- iListener(aListeners.begin()),
- iEnd(aListeners.end());
- iListener!=iEnd;
- ++iListener)
+ for (const auto& rxListener : aListeners)
{
- (*iListener)->vetoableChange(rEvent);
+ rxListener->vetoableChange(rEvent);
}
}
catch(const beans::PropertyVetoException&)
@@ -964,13 +952,9 @@ void Theme::BroadcastPropertyChange (
const ChangeListenerContainer aListeners (*pListeners);
try
{
- for (ChangeListenerContainer::const_iterator
- iListener(aListeners.begin()),
- iEnd(aListeners.end());
- iListener!=iEnd;
- ++iListener)
+ for (const auto& rxListener : aListeners)
{
- (*iListener)->propertyChange(rEvent);
+ rxListener->propertyChange(rEvent);
}
}
catch(const Exception&)