Chromium Code Reviews
DescriptionFix unused lambda captures in //device and //services/media_capture.
Clang just got a new warning about unused lambda captures,
and that requires us to clean all places with this issue
across all the Chromium code base. This CL fixes all such
cases in //device and //services/media_capture.
An example of a code that is no longer considered normal is
auto g = [i, j]() { printf("%d\n", i); };
in which j is never used in the lambda and therefore its capture is unnecessary.
This is a second attempt to submit this CL. Previous one
was reverted because of (now fixed) Windows issues.
The original review url:
https://codereview.chromium.org/2649443002/
BUG=681136
Review-Url: https://codereview.chromium.org/2639883006
Cr-Commit-Position: refs/heads/master@{#445418}
Committed: https://chromium.googlesource.com/chromium/src/+/2f1771ac371b74ddfff193a764dfea08b4a86314
Patch Set 1 #Patch Set 2 : constexpr -> static const #
Messages
Total messages: 12 (8 generated)
|
||||||||||||||||||||||||||||