From e23283f4974df5b1465f424dde10a5675aba7ab8 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Tue, 3 May 2022 16:06:23 +0000 Subject: [PATCH] tint: Fix `[chromium-style]` auto pointer warnings Needed to fix Dawn -> Tint roll Change-Id: I9b889320bbac6518620896ada7a53dd3cb95f01a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88662 Reviewed-by: Dan Sinclair Commit-Queue: Ben Clayton Kokoro: Kokoro --- src/tint/inspector/inspector.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tint/inspector/inspector.cc b/src/tint/inspector/inspector.cc index 7e5a6afaad..ebae93fceb 100644 --- a/src/tint/inspector/inspector.cc +++ b/src/tint/inspector/inspector.cc @@ -560,8 +560,8 @@ std::vector> Inspector::GetEnableDirectives() { // Ast nodes for enable directive are stored within global declarations list auto global_decls = program_->AST().GlobalDeclarations(); - for (auto node : global_decls) { - if (auto ext = node->As()) { + for (auto* node : global_decls) { + if (auto* ext = node->As()) { result.push_back({ext->name, ext->source}); } }