diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-01 21:43:22 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-01 21:43:22 +0000 |
commit | b4d16d99907a10025f1516a72c20b07142046a5e (patch) | |
tree | 522fa13727fc0ddb7a942af0bf0b5cefd966a49f /base/timer.h | |
parent | 0c4c3884b89e0c5fb3adbbb0f3cdf092cda84a10 (diff) | |
download | chromium_src-b4d16d99907a10025f1516a72c20b07142046a5e.zip chromium_src-b4d16d99907a10025f1516a72c20b07142046a5e.tar.gz chromium_src-b4d16d99907a10025f1516a72c20b07142046a5e.tar.bz2 |
Coverity: initialize timer_.
CID=3805
TEST=None
BUG=None
Review URL: http://codereview.chromium.org/244050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27773 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/timer.h')
-rw-r--r-- | base/timer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/base/timer.h b/base/timer.h index 887c2c3..a87149e 100644 --- a/base/timer.h +++ b/base/timer.h @@ -85,8 +85,7 @@ class BaseTimer_Helper { // We have access to the timer_ member so we can orphan this task. class TimerTask : public Task { public: - TimerTask(TimeDelta delay) : delay_(delay) { - // timer_ is set in InitiateDelayedTask. + TimerTask(TimeDelta delay) : timer_(NULL), delay_(delay) { } virtual ~TimerTask() {} BaseTimer_Helper* timer_; |