Refactoring: use C++11 class member variable initialization

This commit is contained in:
Milan Burda 2018-05-22 00:18:38 +02:00
parent ee57c95aa6
commit 2337237d58
94 changed files with 218 additions and 377 deletions

View file

@ -254,7 +254,7 @@ class Browser : public WindowListObserver {
// Send the before-quit message and start closing windows.
bool HandleBeforeQuit();
bool is_quiting_;
bool is_quiting_ = false;
private:
// WindowListObserver implementations:
@ -265,13 +265,13 @@ class Browser : public WindowListObserver {
base::ObserverList<BrowserObserver> observers_;
// Whether `app.exit()` has been called
bool is_exiting_;
bool is_exiting_ = false;
// Whether "ready" event has been emitted.
bool is_ready_;
bool is_ready_ = false;
// The browser is being shutdown.
bool is_shutdown_;
bool is_shutdown_ = false;
int badge_count_ = 0;