diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-04 14:06:06 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-04 14:06:06 +0000 |
commit | 8182fa0cac76e7e6d583aebba060229230516887 (patch) | |
tree | 9857caea2550f6bf3645bd1297a8eeb91bed7843 /src/core/SkTLList.h | |
parent | e659c2e820de0b8d12d81247ed4430022ded0a90 (diff) |
Make SkClipStack::Iter use SkClipStack::Element.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6871051
git-svn-id: http://skia.googlecode.com/svn/trunk@6661 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkTLList.h')
-rw-r--r-- | src/core/SkTLList.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/SkTLList.h b/src/core/SkTLList.h index 87fd52d32e..30d440fd4e 100644 --- a/src/core/SkTLList.h +++ b/src/core/SkTLList.h @@ -350,7 +350,13 @@ void *operator new(size_t, SkTLList<T>* list, } #define SkNEW_INSERT_IN_LLIST_BEFORE(list, location, type_name, args) \ - (new (list, SkTLList< type_name >::kBefore_Placement, location) type_name args) + (new ((list), SkTLList< type_name >::kBefore_Placement, (location)) type_name args) #define SkNEW_INSERT_IN_LLIST_AFTER(list, location, type_name, args) \ - (new (list, SkTLList< type_name >::kAfter_Placement, location) type_name args) + (new ((list), SkTLList< type_name >::kAfter_Placement, (location)) type_name args) + +#define SkNEW_INSERT_AT_LLIST_HEAD(list, type_name, args) \ + SkNEW_INSERT_IN_LLIST_BEFORE((list), (list)->headIter(), type_name, args) + +#define SkNEW_INSERT_AT_LLIST_TAIL(list, type_name, args) \ + SkNEW_INSERT_IN_LLIST_AFTER((list), (list)->tailIter(), type_name, args)
\ No newline at end of file |