Index: tests/PaintTest.cpp |
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp |
index 7affa9ee94efeda632c7326dc08150272f7f57dc..a58bd864ece75c165d8fe0ff58b3cdcc08d14a68 100644 |
--- a/tests/PaintTest.cpp |
+++ b/tests/PaintTest.cpp |
@@ -146,8 +146,7 @@ DEF_TEST(Paint_copy, reporter) { |
paint.setStrokeWidth(SkIntToScalar(2)); |
// set a few pointers |
SkLayerDrawLooper::Builder looperBuilder; |
- SkLayerDrawLooper* looper = looperBuilder.detachLooper(); |
- paint.setLooper(looper)->unref(); |
+ paint.setLooper(looperBuilder.detach()); |
SkMaskFilter* mask = SkBlurMaskFilter::Create(kNormal_SkBlurStyle, |
SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(1))); |
paint.setMaskFilter(mask)->unref(); |