Skip to content

Commit

Permalink
Fix loop-range-construct warnings added in newer versions of Clang. (f…
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaygarde authored Mar 14, 2022
1 parent 565cfdc commit 32705a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions impeller/renderer/backend/metal/render_pass_mtl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -374,17 +374,17 @@ static bool Bind(PassBindingsCache& pass,
auto bind_stage_resources = [&allocator, &pass_bindings](
const Bindings& bindings,
ShaderStage stage) -> bool {
for (const auto buffer : bindings.buffers) {
for (const auto& buffer : bindings.buffers) {
if (!Bind(pass_bindings, allocator, stage, buffer.first, buffer.second)) {
return false;
}
}
for (const auto texture : bindings.textures) {
for (const auto& texture : bindings.textures) {
if (!Bind(pass_bindings, stage, texture.first, *texture.second)) {
return false;
}
}
for (const auto sampler : bindings.samplers) {
for (const auto& sampler : bindings.samplers) {
if (!Bind(pass_bindings, stage, sampler.first, *sampler.second)) {
return false;
}
Expand Down

0 comments on commit 32705a1

Please sign in to comment.