diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-11-11 23:35:03 -0500 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-05-16 19:08:51 +0100 |
commit | 3ea975c5e54c65c6639109f924dc61378d5b05c5 (patch) | |
tree | ecc1187046b4b90e3701185868654111a9302968 | |
parent | b21aa3508b0ae2bf747c0453df279c0cbdcc5867 (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>
-rw-r--r-- | sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx | 8 |
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 ( |