diff options
author | 2015-08-26 13:07:48 -0700 | |
---|---|---|
committer | 2015-08-26 13:07:49 -0700 | |
commit | 385fe4d4b62d7d1dd76116dd570df3290a2f487b (patch) | |
tree | 53d982ff238828331e86acd44071a44162a8688c /src/animator/SkAnimator.cpp | |
parent | 5015176adf046ef906a2313b6e6b64b72cc84898 (diff) |
Style Change: SkNEW->new; SkDELETE->delete
DOCS_PREVIEW= https://skia.org/?cl=1316123003
Review URL: https://codereview.chromium.org/1316123003
Diffstat (limited to 'src/animator/SkAnimator.cpp')
-rw-r--r-- | src/animator/SkAnimator.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/animator/SkAnimator.cpp b/src/animator/SkAnimator.cpp index f2b7780546..97f55af01a 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); |