diff options
Diffstat (limited to 'src/sksl/ast/SkSLASTSwitchStatement.h')
-rw-r--r-- | src/sksl/ast/SkSLASTSwitchStatement.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sksl/ast/SkSLASTSwitchStatement.h b/src/sksl/ast/SkSLASTSwitchStatement.h index 3031a7d2b1..4a963ebc7a 100644 --- a/src/sksl/ast/SkSLASTSwitchStatement.h +++ b/src/sksl/ast/SkSLASTSwitchStatement.h @@ -23,8 +23,8 @@ struct ASTSwitchStatement : public ASTStatement { , fValue(std::move(value)) , fCases(std::move(cases)) {} - SkString description() const override { - SkString result = SkStringPrintf("switch (%s) {\n", + fValue->description().c_str()); + String description() const override { + String result = String::printf("switch (%s) {\n", + fValue->description().c_str()); for (const auto& c : fCases) { result += c->description(); } |