Index: tests/FontHostStreamTest.cpp |
diff --git a/tests/FontHostStreamTest.cpp b/tests/FontHostStreamTest.cpp |
index 7843a412a1d54b65095d05ee3dd6c4741e0cfe6a..f4cc5bf3a91c03a5c11b78ba5e9be2d94a7bb3ef 100644 |
--- a/tests/FontHostStreamTest.cpp |
+++ b/tests/FontHostStreamTest.cpp |
@@ -92,7 +92,8 @@ DEF_TEST(FontHostStream, reporter) { |
SkTypeface* origTypeface = paint.getTypeface(); |
SkAutoTUnref<SkTypeface> aur; |
if (nullptr == origTypeface) { |
- origTypeface = aur.reset(SkTypeface::RefDefault()); |
+ aur.reset(SkTypeface::RefDefault()); |
+ origTypeface = aur.get(); |
} |
int ttcIndex; |