Index: tools/using_skia_and_harfbuzz.cpp |
diff --git a/tools/using_skia_and_harfbuzz.cpp b/tools/using_skia_and_harfbuzz.cpp |
index 413939d15b7f35ab89d65cfd0ec817c1bacffc72..86c9accd33212ae65229da4f1b10297dad54b4ad 100644 |
--- a/tools/using_skia_and_harfbuzz.cpp |
+++ b/tools/using_skia_and_harfbuzz.cpp |
@@ -142,9 +142,7 @@ struct Face { |
auto data = SkData::MakeFromFileName(path); |
assert(data); |
if (!data) { return; } |
- fSkiaTypeface.reset( |
- SkTypeface::CreateFromStream( |
- new SkMemoryStream(data), index)); |
+ fSkiaTypeface = SkTypeface::MakeFromStream(new SkMemoryStream(data), index); |
assert(fSkiaTypeface); |
if (!fSkiaTypeface) { return; } |
auto destroy = [](void *d) { static_cast<SkData*>(d)->unref(); }; |