aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ir/SkSLSwitchStatement.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sksl/ir/SkSLSwitchStatement.h')
-rw-r--r--src/sksl/ir/SkSLSwitchStatement.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sksl/ir/SkSLSwitchStatement.h b/src/sksl/ir/SkSLSwitchStatement.h
index 88e1e70019..31765c4e04 100644
--- a/src/sksl/ir/SkSLSwitchStatement.h
+++ b/src/sksl/ir/SkSLSwitchStatement.h
@@ -23,8 +23,8 @@ struct SwitchStatement : public Statement {
, fValue(std::move(value))
, fCases(std::move(cases)) {}
- String description() const override {
- String result = String::printf("switch (%s) {\n", + fValue->description().c_str());
+ SkString description() const override {
+ SkString result = SkStringPrintf("switch (%s) {\n", + fValue->description().c_str());
for (const auto& c : fCases) {
result += c->description();
}