Index: src/views/SkEventSink.cpp |
diff --git a/src/views/SkEventSink.cpp b/src/views/SkEventSink.cpp |
index 42c1ceb06253c70d62f056d489072bbabfdf48e7..282f2b8ad69e020b6c418f12345f52b021ac2267 100644 |
--- a/src/views/SkEventSink.cpp |
+++ b/src/views/SkEventSink.cpp |
@@ -148,7 +148,7 @@ void SkEventSink::addListenerID(SkEventSinkID id) |
count = prev->countListners(); |
} |
- SkListenersTagList* next = SkNEW_ARGS(SkListenersTagList, (count + 1)); |
+ SkListenersTagList* next = new SkListenersTagList(count + 1); |
if (prev) |
{ |
@@ -209,7 +209,7 @@ void SkEventSink::postToListeners(const SkEvent& evt, SkMSec delay) { |
const SkEventSinkID* iter = list->fIDs; |
const SkEventSinkID* stop = iter + list->countListners(); |
while (iter < stop) { |
- SkEvent* copy = SkNEW_ARGS(SkEvent, (evt)); |
+ SkEvent* copy = new SkEvent(evt); |
copy->setTargetID(*iter++)->postDelay(delay); |
} |
} |