Index: tools/skpdiff/SkDiffContext.cpp |
diff --git a/tools/skpdiff/SkDiffContext.cpp b/tools/skpdiff/SkDiffContext.cpp |
index d14546046c33bc6586a4c8fd34bc29b5fd4a25d3..5add0df515c23d0e7737c59a3f0d34b8977044b7 100644 |
--- a/tools/skpdiff/SkDiffContext.cpp |
+++ b/tools/skpdiff/SkDiffContext.cpp |
@@ -28,7 +28,7 @@ SkDiffContext::SkDiffContext() { |
SkDiffContext::~SkDiffContext() { |
if (fDiffers) { |
- SkDELETE_ARRAY(fDiffers); |
+ delete[] fDiffers; |
} |
} |
@@ -57,14 +57,14 @@ void SkDiffContext::setLongNames(const bool useLongNames) { |
void SkDiffContext::setDiffers(const SkTDArray<SkImageDiffer*>& differs) { |
// Delete whatever the last array of differs was |
if (fDiffers) { |
- SkDELETE_ARRAY(fDiffers); |
+ delete[] fDiffers; |
fDiffers = NULL; |
fDifferCount = 0; |
} |
// Copy over the new differs |
fDifferCount = differs.count(); |
- fDiffers = SkNEW_ARRAY(SkImageDiffer*, fDifferCount); |
+ fDiffers = new SkImageDiffer* [fDifferCount]; |
differs.copy(fDiffers); |
} |