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

Unified Diff: src/animator/SkAnimator.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/animator/SkAnimateSet.cpp ('k') | src/animator/SkAnimatorScript.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/animator/SkAnimator.cpp
diff --git a/src/animator/SkAnimator.cpp b/src/animator/SkAnimator.cpp
index f2b778054691af5f01b48a4abc0a52200814a9f2..97f55af01af3b1509a18d317c2c15b969d4aa1a1 100644
--- a/src/animator/SkAnimator.cpp
+++ b/src/animator/SkAnimator.cpp
@@ -46,9 +46,7 @@ SkAnimator::SkAnimator() : fMaker(NULL) {
initialize();
}
-SkAnimator::~SkAnimator() {
- SkDELETE(fMaker);
-}
+SkAnimator::~SkAnimator() { delete fMaker; }
void SkAnimator::addExtras(SkExtras* extras) {
*fMaker->fExtras.append() = extras;
@@ -386,8 +384,8 @@ const char* SkAnimator::getURIBase() {
}
void SkAnimator::initialize() {
- SkDELETE(fMaker);
- fMaker = SkNEW_ARGS(SkAnimateMaker, (this, NULL, NULL));
+ delete fMaker;
+ fMaker = new SkAnimateMaker(this, NULL, NULL);
decodeMemory(gMathPrimer, sizeof(gMathPrimer)-1);
#ifdef SK_BUILD_FOR_ANDROID
InitializeSkExtraPathEffects(this);
« no previous file with comments | « src/animator/SkAnimateSet.cpp ('k') | src/animator/SkAnimatorScript.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698