diff options
author | 2016-03-16 08:39:41 -0700 | |
---|---|---|
committer | 2016-03-16 08:39:42 -0700 | |
commit | 2691d76a06e1af6282f8b3a3140cc93361be10c4 (patch) | |
tree | 61ce9609bafd5df2b6303cf853542ac3dc77247e /tests/PictureTest.cpp | |
parent | 935f1b1a20f673b81e78bec913cd702ffc793c99 (diff) |
Use std::unique_ptr.
TBR=reed@google.com
Committed: https://skia.googlesource.com/skia/+/20c1e3abfc681771f73eb19fde7284196e028940
Committed: https://skia.googlesource.com/skia/+/3dd9ed37c24611af86f0fe374bd3698b63f09450
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1780933003
Review URL: https://codereview.chromium.org/1780933003
Diffstat (limited to 'tests/PictureTest.cpp')
-rw-r--r-- | tests/PictureTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp index 3654a77173..3d2f19d54c 100644 --- a/tests/PictureTest.cpp +++ b/tests/PictureTest.cpp @@ -1408,7 +1408,7 @@ DEF_TEST(Picture_preserveCullRect, r) { SkAutoTDelete<SkStream> rstream(wstream.detachAsStream()); SkAutoTUnref<SkPicture> deserializedPicture(SkPicture::CreateFromStream(rstream)); - REPORTER_ASSERT(r, SkToBool(deserializedPicture)); + REPORTER_ASSERT(r, deserializedPicture != nullptr); REPORTER_ASSERT(r, deserializedPicture->cullRect().left() == 1); REPORTER_ASSERT(r, deserializedPicture->cullRect().top() == 2); REPORTER_ASSERT(r, deserializedPicture->cullRect().right() == 3); |