Browse Source
Merge pull request #4536 from lioncash/semi3
yuzu: Resolve -Wextra-semi warnings
pull/15/merge
bunnei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
6 additions and
6 deletions
-
src/yuzu/game_list.cpp
-
src/yuzu/game_list_worker.cpp
-
src/yuzu/uisettings.h
|
|
@ -406,7 +406,7 @@ bool GameList::isEmpty() const { |
|
|
type == GameListItemType::SysNandDir)) { |
|
|
type == GameListItemType::SysNandDir)) { |
|
|
item_model->invisibleRootItem()->removeRow(child->row()); |
|
|
item_model->invisibleRootItem()->removeRow(child->row()); |
|
|
i--; |
|
|
i--; |
|
|
}; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
return !item_model->invisibleRootItem()->hasChildren(); |
|
|
return !item_model->invisibleRootItem()->hasChildren(); |
|
|
} |
|
|
} |
|
|
|
|
|
@ -374,7 +374,7 @@ void GameListWorker::run() { |
|
|
ScanFileSystem(ScanTarget::PopulateGameList, game_dir.path.toStdString(), |
|
|
ScanFileSystem(ScanTarget::PopulateGameList, game_dir.path.toStdString(), |
|
|
game_dir.deep_scan ? 256 : 0, game_list_dir); |
|
|
game_dir.deep_scan ? 256 : 0, game_list_dir); |
|
|
} |
|
|
} |
|
|
}; |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
emit Finished(watch_list); |
|
|
emit Finished(watch_list); |
|
|
} |
|
|
} |
|
|
|
|
|
@ -29,14 +29,14 @@ extern const Themes themes; |
|
|
|
|
|
|
|
|
struct GameDir { |
|
|
struct GameDir { |
|
|
QString path; |
|
|
QString path; |
|
|
bool deep_scan; |
|
|
|
|
|
bool expanded; |
|
|
|
|
|
|
|
|
bool deep_scan = false; |
|
|
|
|
|
bool expanded = false; |
|
|
bool operator==(const GameDir& rhs) const { |
|
|
bool operator==(const GameDir& rhs) const { |
|
|
return path == rhs.path; |
|
|
return path == rhs.path; |
|
|
}; |
|
|
|
|
|
|
|
|
} |
|
|
bool operator!=(const GameDir& rhs) const { |
|
|
bool operator!=(const GameDir& rhs) const { |
|
|
return !operator==(rhs); |
|
|
return !operator==(rhs); |
|
|
}; |
|
|
|
|
|
|
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
struct Values { |
|
|
struct Values { |
|
|
|