Index: tests/ImageTest.cpp |
diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp |
index 1c173da81ab847407827913463cac5369226b504..de945f978b16b78585e2fffa93fc4855706e4cff 100644 |
--- a/tests/ImageTest.cpp |
+++ b/tests/ImageTest.cpp |
@@ -109,7 +109,7 @@ DEF_TEST(Image_NewRasterCopy, reporter) { |
const SkPMColor green = SkPackARGB32(0xFF, 0, 0xFF, 0); |
const SkPMColor blue = SkPackARGB32(0xFF, 0, 0, 0xFF); |
SkPMColor colors[] = { red, green, blue, 0 }; |
- SkAutoTUnref<SkColorTable> ctable(SkNEW_ARGS(SkColorTable, (colors, SK_ARRAY_COUNT(colors)))); |
+ SkAutoTUnref<SkColorTable> ctable(new SkColorTable(colors, SK_ARRAY_COUNT(colors))); |
// The colortable made a copy, so we can trash the original colors |
memset(colors, 0xFF, sizeof(colors)); |