[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sd/source
Ashod Nakashian (via logerrit)
logerrit at kemper.freedesktop.org
Mon Nov 11 01:36:35 UTC 2019
sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
New commits:
commit cd78158694a2cd6ea482f86eed99204d4b669b92
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Sun Nov 11 23:35:03 2018 -0500
Commit: Ashod Nakashian <ashnakash at 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 <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at 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 (
More information about the Libreoffice-commits
mailing list