Merge pull request #5531 from FearlessTobi/port-4536
Port yuzu-emu/yuzu#4536: "yuzu: Resolve -Wextra-semi warnings"
This commit is contained in:
commit
69f4aacccf
3 changed files with 7 additions and 6 deletions
|
@ -391,7 +391,7 @@ bool GameList::isEmpty() const {
|
||||||
(type == GameListItemType::InstalledDir || type == GameListItemType::SystemDir)) {
|
(type == GameListItemType::InstalledDir || type == GameListItemType::SystemDir)) {
|
||||||
item_model->invisibleRootItem()->removeRow(child->row());
|
item_model->invisibleRootItem()->removeRow(child->row());
|
||||||
i--;
|
i--;
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
return !item_model->invisibleRootItem()->hasChildren();
|
return !item_model->invisibleRootItem()->hasChildren();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,7 +152,8 @@ void GameListWorker::run() {
|
||||||
AddFstEntriesToGameList(game_dir.path.toStdString(), game_dir.deep_scan ? 256 : 0,
|
AddFstEntriesToGameList(game_dir.path.toStdString(), game_dir.deep_scan ? 256 : 0,
|
||||||
game_list_dir);
|
game_list_dir);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
emit Finished(watch_list);
|
emit Finished(watch_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,14 +30,14 @@ extern const Themes themes;
|
||||||
|
|
||||||
struct GameDir {
|
struct GameDir {
|
||||||
QString path;
|
QString path;
|
||||||
bool deep_scan;
|
bool deep_scan = false;
|
||||||
bool expanded;
|
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);
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class GameListIconSize {
|
enum class GameListIconSize {
|
||||||
|
|
Loading…
Reference in a new issue