summaryrefslogtreecommitdiffstats
path: root/chrome/service
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-11 00:37:31 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-11 00:37:31 +0000
commit1ccc44a66196d4b910498fcc7cf9cb414c432ba5 (patch)
tree9b068c09cd890db154241eb049ef7ea5462ffca0 /chrome/service
parent553aabb40b432ecdc2c289c935ba77874928dfcc (diff)
downloadchromium_src-1ccc44a66196d4b910498fcc7cf9cb414c432ba5.zip
chromium_src-1ccc44a66196d4b910498fcc7cf9cb414c432ba5.tar.gz
chromium_src-1ccc44a66196d4b910498fcc7cf9cb414c432ba5.tar.bz2
Coverity: Initialize member variables.
CID=8455,8780,1127,11228,11229,13282 BUG=none TEST=none Review URL: http://codereview.chromium.org/4696002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65742 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service')
-rw-r--r--chrome/service/cloud_print/print_system_win.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc
index 62a5b54..c1b3491 100644
--- a/chrome/service/cloud_print/print_system_win.cc
+++ b/chrome/service/cloud_print/print_system_win.cc
@@ -113,7 +113,10 @@ class PrintSystemWatcherWin
: public base::ObjectWatcher::Delegate {
public:
PrintSystemWatcherWin()
- : printer_(NULL), printer_change_(NULL), delegate_(NULL) {
+ : printer_(NULL),
+ printer_change_(NULL),
+ delegate_(NULL),
+ did_signal_(false) {
}
~PrintSystemWatcherWin() {
Stop();
@@ -259,7 +262,7 @@ class PrintSystemWin : public PrintSystem {
: public PrintSystem::PrintServerWatcher,
public PrintSystemWatcherWinDelegate {
public:
- PrintServerWatcherWin() {}
+ PrintServerWatcherWin() : delegate_(NULL) {}
// PrintSystem::PrintServerWatcher interface
virtual bool StartWatching(
@@ -295,7 +298,9 @@ class PrintSystemWin : public PrintSystem {
public PrintSystemWatcherWinDelegate {
public:
explicit PrinterWatcherWin(const std::string& printer_name)
- : printer_name_(printer_name) {}
+ : printer_name_(printer_name),
+ delegate_(NULL) {
+ }
// PrintSystem::PrinterWatcher interface
virtual bool StartWatching(