Index: tools/viewer/SKPSlide.cpp |
diff --git a/tools/viewer/SKPSlide.cpp b/tools/viewer/SKPSlide.cpp |
index 9419253f0c25a2aa4f0a238018e0790bb84c09c3..e24e1fdb048d35718b6cd32f3e497fd9dbf9e267 100644 |
--- a/tools/viewer/SKPSlide.cpp |
+++ b/tools/viewer/SKPSlide.cpp |
@@ -35,8 +35,8 @@ void SKPSlide::draw(SkCanvas* canvas) { |
} |
static sk_sp<SkPicture> read_picture(const char path[]) { |
- SkAutoTDelete<SkStream> stream(SkStream::NewFromFile(path)); |
- if (stream.get() == nullptr) { |
+ std::unique_ptr<SkStream> stream = SkStream::MakeFromFile(path); |
+ if (!stream) { |
SkDebugf("Could not read %s.\n", path); |
return nullptr; |
} |