sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
New commits: commit cd78158694a2cd6ea482f86eed99204d4b669b92 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> AuthorDate: Sun Nov 11 23:35:03 2018 -0500 Commit: Ashod Nakashian <ashnak...@gmail.com> CommitDate: Mon Nov 11 02:35:50 2019 +0100 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 <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx b/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx index 51b648a959cf..5246a73663ec 100644 --- a/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx @@ -67,12 +67,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 ( _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits