Index: tests/PictureTest.cpp |
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp |
index a33deeb218689193ecedfa3dd8fd0a8fc19c154d..448e079958ef5a01444fc0c5a9b009c16325b27e 100644 |
--- a/tests/PictureTest.cpp |
+++ b/tests/PictureTest.cpp |
@@ -1409,7 +1409,7 @@ |
SkAutoTDelete<SkStream> rstream(wstream.detachAsStream()); |
SkAutoTUnref<SkPicture> deserializedPicture(SkPicture::CreateFromStream(rstream)); |
- REPORTER_ASSERT(r, deserializedPicture != nullptr); |
+ REPORTER_ASSERT(r, SkToBool(deserializedPicture)); |
REPORTER_ASSERT(r, deserializedPicture->cullRect().left() == 1); |
REPORTER_ASSERT(r, deserializedPicture->cullRect().top() == 2); |
REPORTER_ASSERT(r, deserializedPicture->cullRect().right() == 3); |