Index: src/animator/SkAnimateMaker.cpp |
diff --git a/src/animator/SkAnimateMaker.cpp b/src/animator/SkAnimateMaker.cpp |
index 5186da04d814ef4c2c876589385611c8efc066a9..066f877a9b50e9dcce864a3b5e6a302dfc2b92bf 100644 |
--- a/src/animator/SkAnimateMaker.cpp |
+++ b/src/animator/SkAnimateMaker.cpp |
@@ -99,9 +99,9 @@ bool SkAnimateMaker::decodeURI(const char uri[]) { |
// SkDebugf("animator decode %s\n", uri); |
// SkStream* stream = SkStream::GetURIStream(fPrefix.c_str(), uri); |
- SkAutoTDelete<SkStream> stream(SkStream::NewFromFile(uri)); |
- if (stream.get()) { |
- bool success = decodeStream(stream); |
+ std::unique_ptr<SkStream> stream = SkStream::MakeFromFile(uri); |
+ if (stream) { |
+ bool success = decodeStream(stream.get()); |
if (hasError() && fError.hasNoun() == false) |
fError.setNoun(uri); |
return success; |