diff options
Diffstat (limited to 'base/observer_list.h')
-rw-r--r-- | base/observer_list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/observer_list.h b/base/observer_list.h index 0242d6a..f4876df 100644 --- a/base/observer_list.h +++ b/base/observer_list.h @@ -87,7 +87,7 @@ class ObserverList { // When check_empty is true, assert that the list is empty on destruction. if (check_empty) { Compact(); - DCHECK_EQ(observers_.size(), 0); + DCHECK_EQ(observers_.size(), 0U); } } @@ -164,7 +164,7 @@ class ObserverList { do { \ ObserverList<ObserverType>::Iterator it(observer_list); \ ObserverType* obs; \ - while (obs = it.GetNext()) \ + while ((obs = it.GetNext()) != NULL) \ obs->func; \ } while (0) |