aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ast/SkSLASTFieldSuffix.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sksl/ast/SkSLASTFieldSuffix.h')
-rw-r--r--src/sksl/ast/SkSLASTFieldSuffix.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sksl/ast/SkSLASTFieldSuffix.h b/src/sksl/ast/SkSLASTFieldSuffix.h
index bde1e4aec5..b29ddf3bda 100644
--- a/src/sksl/ast/SkSLASTFieldSuffix.h
+++ b/src/sksl/ast/SkSLASTFieldSuffix.h
@@ -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)
- : INHERITED(position, ASTSuffix::kField_Kind)
- , fField(std::move(field)) {}
+ ASTFieldSuffix(int offset, StringFragment field)
+ : INHERITED(offset, ASTSuffix::kField_Kind)
+ , fField(field) {}
String description() const override {
return "." + fField;
}
- String fField;
+ StringFragment fField;
typedef ASTSuffix INHERITED;
};