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

Unified Diff: src/views/SkEventSink.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/utils/win/SkWGL_win.cpp ('k') | src/xml/SkDOM.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « src/utils/win/SkWGL_win.cpp ('k') | src/xml/SkDOM.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698