summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-11-11 23:35:03 -0500
committerMichael Meeks <michael.meeks@collabora.com>2019-12-16 17:29:59 +0000
commit8955c25c3b4fb44a7d1adcf088917d2329bdc99e (patch)
treea2d1051167aa5fedd5f52f373c092e53dfe633f9 /sd/source/ui/framework
parent98e569f29154c5f295516090186db5836e749a0d (diff)
sd: for_each -> range-for
Simpler, more readable, and sensible stacktraces. Change-Id: I8e8a9903e3bf2ce5f31b841db9cb68fe4edc3fb6 (cherry picked from commit a00490bf0d2ee2c94f494978ebfeb8012a02e678) Reviewed-on: https://gerrit.libreoffice.org/82403 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'sd/source/ui/framework')
-rw-r--r--sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx b/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx
index 9657957d9ed2..15460fe15f7c 100644
--- a/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx
+++ b/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx
@@ -69,12 +69,8 @@ void ConfigurationControllerResourceManager::ActivateResources (
// Iterate in normal order over the resources that are to be
// activated so that resources on which others depend are activated
// before the depending resources are activated.
- ::std::for_each(
- rResources.begin(),
- rResources.end(),
- [&] (Reference<XResourceId> const& xResource) {
- return ActivateResource(xResource, rxConfiguration);
- } );
+ for (const Reference<XResourceId>& xResource : rResources)
+ ActivateResource(xResource, rxConfiguration);
}
void ConfigurationControllerResourceManager::DeactivateResources (