aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/SkSLSectionAndParameterHelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sksl/SkSLSectionAndParameterHelper.h')
-rw-r--r--src/sksl/SkSLSectionAndParameterHelper.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sksl/SkSLSectionAndParameterHelper.h b/src/sksl/SkSLSectionAndParameterHelper.h
index fccfff473b..89bae564cf 100644
--- a/src/sksl/SkSLSectionAndParameterHelper.h
+++ b/src/sksl/SkSLSectionAndParameterHelper.h
@@ -42,11 +42,10 @@ public:
for (const auto& p : program.fElements) {
switch (p->fKind) {
case ProgramElement::kVar_Kind: {
- const VarDeclarations* decls = (const VarDeclarations*) p.get();
- for (const auto& raw : decls->fVars) {
- const VarDeclaration& decl = (VarDeclaration&) *raw;
- if (IsParameter(*decl.fVar)) {
- fParameters.push_back(decl.fVar);
+ VarDeclarations* decls = (VarDeclarations*) p.get();
+ for (const auto& var : decls->fVars) {
+ if (IsParameter(*var)) {
+ fParameters.push_back(var);
}
}
break;