Index: src/animator/SkAnimator.cpp |
diff --git a/src/animator/SkAnimator.cpp b/src/animator/SkAnimator.cpp |
index ee75ab14affa8fc49f49df9e0ba6a200054338d6..c5aabbba4bdc62b7dd2ba81fed10ebf5e20e6262 100644 |
--- a/src/animator/SkAnimator.cpp |
+++ b/src/animator/SkAnimator.cpp |
@@ -82,10 +82,10 @@ bool SkAnimator::decodeURI(const char uri[]) { |
// SkDebugf("animator decode %s\n", uri); |
// SkStream* stream = SkStream::GetURIStream(fMaker->fPrefix.c_str(), uri); |
- SkAutoTDelete<SkStream> stream(SkStream::NewFromFile(uri)); |
- if (stream.get()) { |
+ std::unique_ptr<SkStream> stream = SkStream::MakeFromFile(uri); |
+ if (stream) { |
this->setURIBase(uri); |
- return decodeStream(stream); |
+ return decodeStream(stream.get()); |
} else { |
return false; |
} |