Fix typo in SkTLazy.h's "operator delete"

git-svn-id: http://skia.googlecode.com/svn/trunk@8333 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2013-03-22 13:34:59 +00:00
parent 069a902a96
commit 5ee708a235

View File

@ -103,7 +103,7 @@ template <typename T> void* operator new(size_t, SkTLazy<T>* lazy) {
// 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*, SkTLazy<T>) { SK_CRASH(); }
template <typename T> void operator delete(void*, SkTLazy<T>*) { SK_CRASH(); }
// Use this to construct a T inside an SkTLazy using a non-default constructor.
#define SkNEW_IN_TLAZY(tlazy_ptr, type_name, args) (new (tlazy_ptr) type_name args)