diff options
Diffstat (limited to 'src/sksl/ast/SkSLASTFieldSuffix.h')
-rw-r--r-- | src/sksl/ast/SkSLASTFieldSuffix.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sksl/ast/SkSLASTFieldSuffix.h b/src/sksl/ast/SkSLASTFieldSuffix.h index bde1e4aec5..9ee8531bf1 100644 --- a/src/sksl/ast/SkSLASTFieldSuffix.h +++ b/src/sksl/ast/SkSLASTFieldSuffix.h @@ -4,7 +4,7 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ - + #ifndef SKSL_ASTFIELDSUFFIX #define SKSL_ASTFIELDSUFFIX @@ -17,15 +17,15 @@ namespace SkSL { * actually vector swizzle (which looks the same to the parser). */ struct ASTFieldSuffix : public ASTSuffix { - ASTFieldSuffix(Position position, String field) + ASTFieldSuffix(Position position, SkString field) : INHERITED(position, ASTSuffix::kField_Kind) , fField(std::move(field)) {} - String description() const override { + SkString description() const override { return "." + fField; } - String fField; + SkString fField; typedef ASTSuffix INHERITED; }; |