Replace "size()" with "empty()".
This commit is contained in:
parent
6ef3be23fd
commit
00693ba075
7 changed files with 8 additions and 8 deletions
|
@ -44,7 +44,7 @@ void Browser::Quit() {
|
|||
return;
|
||||
|
||||
atom::WindowList* window_list = atom::WindowList::GetInstance();
|
||||
if (window_list->size() == 0)
|
||||
if (window_list->empty())
|
||||
NotifyAndShutdown();
|
||||
|
||||
window_list->CloseAllWindows();
|
||||
|
@ -66,7 +66,7 @@ void Browser::Exit(mate::Arguments* args) {
|
|||
|
||||
// Must destroy windows before quitting, otherwise bad things can happen.
|
||||
atom::WindowList* window_list = atom::WindowList::GetInstance();
|
||||
if (window_list->size() == 0) {
|
||||
if (window_list->empty()) {
|
||||
Shutdown();
|
||||
} else {
|
||||
// Unlike Quit(), we do not ask to close window, but destroy the window
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue