diff options
Diffstat (limited to 'src/animator/SkAnimateMaker.cpp')
-rw-r--r-- | src/animator/SkAnimateMaker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/animator/SkAnimateMaker.cpp b/src/animator/SkAnimateMaker.cpp index 5186da04d8..066f877a9b 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; |