From ea8f6e4aeb120117c72b87da398eeebb35fe192a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Jan 2017 11:45:27 +0200 Subject: Cosmetic change --- build2/operation.cxx | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) (limited to 'build2/operation.cxx') diff --git a/build2/operation.cxx b/build2/operation.cxx index b900835..f2e3a29 100644 --- a/build2/operation.cxx +++ b/build2/operation.cxx @@ -109,32 +109,31 @@ namespace build2 // vector> psp; - auto body ( - [a, quiet, &psp, &trace] (void* v) - { - target& t (*static_cast (v)); + auto body = [a, quiet, &psp, &trace] (void* v) + { + target& t (*static_cast (v)); - l5 ([&]{trace << diag_doing (a, t);}); + l5 ([&]{trace << diag_doing (a, t);}); - switch (execute (a, t)) + switch (execute (a, t)) + { + case target_state::unchanged: { - case target_state::unchanged: - { - if (!quiet) - info << diag_done (a, t); - break; - } - case target_state::postponed: - psp.push_back (t); - break; - case target_state::changed: + if (!quiet) + info << diag_done (a, t); break; - case target_state::failed: - //@@ This could probably happen in a parallel build. - default: - assert (false); } - }); + case target_state::postponed: + psp.push_back (t); + break; + case target_state::changed: + break; + case target_state::failed: + //@@ This could probably happen in a parallel build. + default: + assert (false); + } + }; if (current_mode == execution_mode::first) for (void* v: ts) body (v); -- cgit v1.1