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; |
} |
} |