Replace "size()" with "empty()".

This commit is contained in:
Haojian Wu 2017-03-30 21:59:18 +02:00
parent 6ef3be23fd
commit 00693ba075
7 changed files with 8 additions and 8 deletions

View file

@ -88,7 +88,7 @@ void AutoUpdater::SetFeedURL(const std::string& url, mate::Arguments* args) {
void AutoUpdater::QuitAndInstall() {
// If we don't have any window then quitAndInstall immediately.
WindowList* window_list = WindowList::GetInstance();
if (window_list->size() == 0) {
if (window_list->empty()) {
auto_updater::AutoUpdater::QuitAndInstall();
return;
}