Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Unified Diff: base/observer_list_unittest.cc

Issue 10827112: base: Fix minor warnings reported by cppcheck. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/memory/scoped_ptr_unittest.cc ('k') | base/process_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/observer_list_unittest.cc
diff --git a/base/observer_list_unittest.cc b/base/observer_list_unittest.cc
index f8aff5a7ea548e1401ccb9d21c97a1c51980ed54..8a8521535c29dfaaece311edea2e1f54347dbb7a 100644
--- a/base/observer_list_unittest.cc
+++ b/base/observer_list_unittest.cc
@@ -101,6 +101,7 @@ class AddRemoveThread : public PlatformThread::Delegate,
public:
AddRemoveThread(ObserverListThreadSafe<Foo>* list, bool notify)
: list_(list),
+ loop_(NULL),
in_list_(false),
start_(Time::Now()),
count_observes_(0),
@@ -529,7 +530,7 @@ class ListDestructor : public Foo {
virtual void Observe(int x) OVERRIDE {
delete list_;
}
- int total;
+
private:
ObserverList<Foo>* list_;
};
« no previous file with comments | « base/memory/scoped_ptr_unittest.cc ('k') | base/process_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698