| Index: include/core/SkTArray.h
|
| ===================================================================
|
| --- include/core/SkTArray.h (revision 9602)
|
| +++ include/core/SkTArray.h (working copy)
|
| @@ -453,6 +453,13 @@
|
| return array->push_back_raw(1);
|
| }
|
|
|
| +// Skia doesn't use C++ exceptions but it may be compiled with them enabled. Having an op delete
|
| +// to match the op new silences warnings about missing op delete when a constructor throws an
|
| +// exception.
|
| +template <typename T> void operator delete(void*, SkTArray<T, MEM_COPY>* array, int atIndex) {
|
| + SK_CRASH();
|
| +}
|
| +
|
| // Constructs a new object as the last element of an SkTArray.
|
| #define SkNEW_APPEND_TO_TARRAY(array_ptr, type_name, args) \
|
| (new ((array_ptr), (array_ptr)->count()) type_name args)
|
|
|