aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/animator/SkAnimator.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-08-26 13:07:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-26 13:07:49 -0700
commit385fe4d4b62d7d1dd76116dd570df3290a2f487b (patch)
tree53d982ff238828331e86acd44071a44162a8688c /src/animator/SkAnimator.cpp
parent5015176adf046ef906a2313b6e6b64b72cc84898 (diff)
Style Change: SkNEW->new; SkDELETE->delete
Diffstat (limited to 'src/animator/SkAnimator.cpp')
-rw-r--r--src/animator/SkAnimator.cpp8
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);