| Index: Source/wtf/WeakPtr.h
|
| diff --git a/Source/wtf/WeakPtr.h b/Source/wtf/WeakPtr.h
|
| index f81e122cebcf4e88f935756a62bde026819a7768..3f8ddca3ee0f94664f4071f542c8c9c4b38483f1 100644
|
| --- a/Source/wtf/WeakPtr.h
|
| +++ b/Source/wtf/WeakPtr.h
|
| @@ -57,7 +57,7 @@ public:
|
| void bindTo(T* ptr)
|
| {
|
| ASSERT(!m_ptr);
|
| -#ifndef NDEBUG
|
| +#if ENABLE(ASSERT)
|
| m_boundThread = currentThread();
|
| #endif
|
| m_ptr = ptr;
|
| @@ -68,14 +68,14 @@ private:
|
|
|
| explicit WeakReference(T* ptr)
|
| : m_ptr(ptr)
|
| -#ifndef NDEBUG
|
| +#if ENABLE(ASSERT)
|
| , m_boundThread(currentThread())
|
| #endif
|
| {
|
| }
|
|
|
| T* m_ptr;
|
| -#ifndef NDEBUG
|
| +#if ENABLE(ASSERT)
|
| ThreadIdentifier m_boundThread;
|
| #endif
|
| };
|
|
|