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

Unified Diff: src/animator/SkAnimatorScript.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/SkAnimator.cpp ('k') | src/animator/SkAnimatorScript2.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/animator/SkAnimatorScript.cpp
diff --git a/src/animator/SkAnimatorScript.cpp b/src/animator/SkAnimatorScript.cpp
index f4ea51890f83ba55ee568ab4338f0d4aefeebda0..051dc0d872b71644ff7fa0400c6251ff0a04d999 100644
--- a/src/animator/SkAnimatorScript.cpp
+++ b/src/animator/SkAnimatorScript.cpp
@@ -462,13 +462,13 @@ bool SkAnimatorScript::Unbox(void* m, SkScriptValue* scriptValue) {
} break;
case SkType_String: {
SkDisplayString* boxedValue = (SkDisplayString*) displayable;
- scriptValue->fOperand.fString = SkNEW_ARGS(SkString, (boxedValue->value));
+ scriptValue->fOperand.fString = new SkString(boxedValue->value);
} break;
default: {
const char* id = NULL;
SkDEBUGCODE(bool success = ) maker->findKey(displayable, &id);
SkASSERT(success);
- scriptValue->fOperand.fString = SkNEW_ARGS(SkString, (id));
+ scriptValue->fOperand.fString = new SkString(id);
type = SkType_String;
}
}
« no previous file with comments | « src/animator/SkAnimator.cpp ('k') | src/animator/SkAnimatorScript2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698