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:
parent
7212ad3205
commit
e23283f497
|
@ -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});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue