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 <dsinclair@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ben Clayton 2022-05-03 16:06:23 +00:00 committed by Dawn LUCI CQ
parent 7212ad3205
commit e23283f497
1 changed files with 2 additions and 2 deletions

View File

@ -560,8 +560,8 @@ std::vector<std::pair<std::string, Source>> Inspector::GetEnableDirectives() {
// Ast nodes for enable directive are stored within global declarations list // Ast nodes for enable directive are stored within global declarations list
auto global_decls = program_->AST().GlobalDeclarations(); auto global_decls = program_->AST().GlobalDeclarations();
for (auto node : global_decls) { for (auto* node : global_decls) {
if (auto ext = node->As<ast::Enable>()) { if (auto* ext = node->As<ast::Enable>()) {
result.push_back({ext->name, ext->source}); result.push_back({ext->name, ext->source});
} }
} }