aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ir/SkSLLayout.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sksl/ir/SkSLLayout.h')
-rw-r--r--src/sksl/ir/SkSLLayout.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sksl/ir/SkSLLayout.h b/src/sksl/ir/SkSLLayout.h
index 7359262c96..4cfd1a2771 100644
--- a/src/sksl/ir/SkSLLayout.h
+++ b/src/sksl/ir/SkSLLayout.h
@@ -50,9 +50,9 @@ struct Layout {
, fBlendSupportAllEquations(false)
, fFormat(ASTLayout::Format::kUnspecified) {}
- SkString description() const {
- SkString result;
- SkString separator;
+ std::string description() const {
+ std::string result;
+ std::string separator;
if (fLocation >= 0) {
result += separator + "location = " + to_string(fLocation);
separator = ", ";
@@ -89,7 +89,7 @@ struct Layout {
result += separator + ASTLayout::FormatToStr(fFormat);
separator = ", ";
}
- if (result.size() > 0) {
+ if (result.length() > 0) {
result = "layout (" + result + ")";
}
return result;