| Index: webrtc/base/taskparent.cc
|
| diff --git a/webrtc/base/taskparent.cc b/webrtc/base/taskparent.cc
|
| index db6db3702974ee1e15198e901d0e5680baba0935..14d236dc428dc6bc30512da5cda98da5dfa9ca6e 100644
|
| --- a/webrtc/base/taskparent.cc
|
| +++ b/webrtc/base/taskparent.cc
|
| @@ -46,7 +46,7 @@ void TaskParent::AddChild(Task *child) {
|
| children_->insert(child);
|
| }
|
|
|
| -#ifdef _DEBUG
|
| +#if !defined(NDEBUG)
|
| bool TaskParent::IsChildTask(Task *task) {
|
| ASSERT(task != NULL);
|
| return task->parent_ == this && children_->find(task) != children_->end();
|
| @@ -69,7 +69,7 @@ bool TaskParent::AnyChildError() {
|
|
|
| void TaskParent::AbortAllChildren() {
|
| if (children_->size() > 0) {
|
| -#ifdef _DEBUG
|
| +#if !defined(NDEBUG)
|
| runner_->IncrementAbortCount();
|
| #endif
|
|
|
| @@ -78,7 +78,7 @@ void TaskParent::AbortAllChildren() {
|
| (*it)->Abort(true); // Note we do not wake
|
| }
|
|
|
| -#ifdef _DEBUG
|
| +#if !defined(NDEBUG)
|
| runner_->DecrementAbortCount();
|
| #endif
|
| }
|
|
|