Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index fe2fb0b2ffa04019fff7ba688abce1709dac78ba..dd0fa4044e6f5b9bbeaf776b4d454d7311ecea78 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -536,8 +536,7 @@ static SkPaint make_paint() { |
paintForRasterizer = make_paint(); |
} |
rasterizerBuilder.addLayer(paintForRasterizer); |
- SkAutoTUnref<SkRasterizer> rasterizer(rasterizerBuilder.detachRasterizer()); |
- paint.setRasterizer(rasterizer); |
+ paint.setRasterizer(rasterizerBuilder.detach()); |
paint.setImageFilter(make_image_filter()); |
SkAutoDataUnref data(make_3Dlut(nullptr, make_bool(), make_bool(), make_bool())); |
paint.setTextAlign(make_paint_align()); |