Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: src/fonts/SkTestScalerContext.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/fonts/SkRemotableFontMgr.cpp ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/fonts/SkTestScalerContext.cpp
diff --git a/src/fonts/SkTestScalerContext.cpp b/src/fonts/SkTestScalerContext.cpp
index 8038b0398ce58e33fa45c32d723cd283b15f5739..ee783814368ce83d48e6ad1edee8991491d4a21d 100644
--- a/src/fonts/SkTestScalerContext.cpp
+++ b/src/fonts/SkTestScalerContext.cpp
@@ -35,9 +35,9 @@ SkTestFont::SkTestFont(const SkTestFontData& fontData)
SkTestFont::~SkTestFont() {
for (unsigned index = 0; index < fCharCodesCount; ++index) {
- SkDELETE(fPaths[index]);
+ delete fPaths[index];
}
- SkDELETE_ARRAY(fPaths);
+ delete[] fPaths;
}
#ifdef SK_DEBUG
@@ -78,9 +78,9 @@ int SkTestFont::codeToIndex(SkUnichar charCode) const {
}
void SkTestFont::init(const SkScalar* pts, const unsigned char* verbs) {
- fPaths = SkNEW_ARRAY(SkPath*, fCharCodesCount);
+ fPaths = new SkPath* [fCharCodesCount];
for (unsigned index = 0; index < fCharCodesCount; ++index) {
- SkPath* path = SkNEW(SkPath);
+ SkPath* path = new SkPath;
SkPath::Verb verb;
while ((verb = (SkPath::Verb) *verbs++) != SkPath::kDone_Verb) {
switch (verb) {
@@ -280,5 +280,5 @@ private:
};
SkScalerContext* SkTestTypeface::onCreateScalerContext(const SkDescriptor* desc) const {
- return SkNEW_ARGS(SkTestScalerContext, (const_cast<SkTestTypeface*>(this), desc));
+ return new SkTestScalerContext(const_cast<SkTestTypeface*>(this), desc);
}
« no previous file with comments | « src/fonts/SkRemotableFontMgr.cpp ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698