diff options
Diffstat (limited to 'tests/TArrayTest.cpp')
-rw-r--r-- | tests/TArrayTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/TArrayTest.cpp b/tests/TArrayTest.cpp index 8c1e8e4532..6a9b5f5a81 100644 --- a/tests/TArrayTest.cpp +++ b/tests/TArrayTest.cpp @@ -61,12 +61,12 @@ static void TestTSet_basic(skiatest::Reporter* reporter) { namespace { SkTArray<int>* make() { typedef SkTArray<int> IntArray; - return SkNEW(IntArray); + return new IntArray; } template <int N> SkTArray<int>* make_s() { typedef SkSTArray<N, int> IntArray; - return SkNEW(IntArray); + return new IntArray; } } @@ -97,14 +97,14 @@ static void test_swap(skiatest::Reporter* reporter) { for (int i = 0; i < kSizes[dataSizeB]; ++i) { REPORTER_ASSERT(reporter, curr++ == (*a)[i]); } - SkDELETE(b); + delete b; a->swap(a); curr = kSizes[dataSizeA]; for (int i = 0; i < kSizes[dataSizeB]; ++i) { REPORTER_ASSERT(reporter, curr++ == (*a)[i]); } - SkDELETE(a); + delete a; } } } |