aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ir/SkSLVarDeclarationsStatement.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sksl/ir/SkSLVarDeclarationsStatement.h')
-rw-r--r--src/sksl/ir/SkSLVarDeclarationsStatement.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/sksl/ir/SkSLVarDeclarationsStatement.h b/src/sksl/ir/SkSLVarDeclarationsStatement.h
index c9c1df175b..0258e66c6e 100644
--- a/src/sksl/ir/SkSLVarDeclarationsStatement.h
+++ b/src/sksl/ir/SkSLVarDeclarationsStatement.h
@@ -30,16 +30,11 @@ struct VarDeclarationsStatement : public Statement {
return true;
}
- std::unique_ptr<Statement> clone() const override {
- std::unique_ptr<VarDeclarations> cloned((VarDeclarations*) fDeclaration->clone().release());
- return std::unique_ptr<Statement>(new VarDeclarationsStatement(std::move(cloned)));
- }
-
String description() const override {
return fDeclaration->description() + ";";
}
- std::unique_ptr<VarDeclarations> fDeclaration;
+ std::shared_ptr<VarDeclarations> fDeclaration;
typedef Statement INHERITED;
};