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

Unified Diff: src/core/SkTMultiMap.h

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/core/SkTLS.cpp ('k') | src/core/SkTaskGroup.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkTMultiMap.h
diff --git a/src/core/SkTMultiMap.h b/src/core/SkTMultiMap.h
index 1168ed6e915a0cd7d0c05144eaa1f1c24516c336..5f8589d9126e9f3f96345ea16a2160a22da9a947 100644
--- a/src/core/SkTMultiMap.h
+++ b/src/core/SkTMultiMap.h
@@ -40,14 +40,14 @@ public:
if (list) {
// The new ValueList entry is inserted as the second element in the
// linked list, and it will contain the value of the first element.
- ValueList* newEntry = SkNEW_ARGS(ValueList, (list->fValue));
+ ValueList* newEntry = new ValueList(list->fValue);
newEntry->fNext = list->fNext;
// The existing first ValueList entry is updated to contain the
// inserted value.
list->fNext = newEntry;
list->fValue = value;
} else {
- fHash.add(SkNEW_ARGS(ValueList, (value)));
+ fHash.add(new ValueList(value));
}
++fCount;
@@ -68,13 +68,13 @@ public:
ValueList* next = list->fNext;
list->fValue = next->fValue;
list->fNext = next->fNext;
- SkDELETE(next);
+ delete next;
} else if (prev) {
prev->fNext = NULL;
- SkDELETE(list);
+ delete list;
} else {
fHash.remove(key);
- SkDELETE(list);
+ delete list;
}
--fCount;
« no previous file with comments | « src/core/SkTLS.cpp ('k') | src/core/SkTaskGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698