diff options
author | bunnei <bunneidev@gmail.com> | 2019-10-05 20:41:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-05 20:41:20 -0400 |
commit | deecd7f074a0547b8fc08a33fdc547eb63859e3e (patch) | |
tree | d70efa81b1824d2dc351b7355d5016e75027ed8f /src/yuzu/game_list.cpp | |
parent | 6f511c8006f73206519731db8bd7117fb629b56f (diff) | |
parent | 25ee892d5e18c764dc46db409caa18a11fd9221d (diff) |
Merge pull request #2942 from ReinUsesLisp/clang-warnings
Silence miscellaneous warnings
Diffstat (limited to 'src/yuzu/game_list.cpp')
-rw-r--r-- | src/yuzu/game_list.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index d5fab2f1f..a2b88c787 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp @@ -172,9 +172,7 @@ void GameList::onTextChanged(const QString& new_text) { const int folder_count = tree_view->model()->rowCount(); QString edit_filter_text = new_text.toLower(); QStandardItem* folder; - QStandardItem* child; int children_total = 0; - QModelIndex root_index = item_model->invisibleRootItem()->index(); // If the searchfield is empty every item is visible // Otherwise the filter gets applied @@ -272,6 +270,8 @@ void GameList::onUpdateThemedIcons() { .scaled(icon_size, icon_size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation), Qt::DecorationRole); break; + default: + break; } } } @@ -392,6 +392,8 @@ void GameList::ValidateEntry(const QModelIndex& item) { case GameListItemType::AddDir: emit AddDirectory(); break; + default: + break; } } @@ -462,6 +464,8 @@ void GameList::PopupContextMenu(const QPoint& menu_location) { case GameListItemType::SysNandDir: AddPermDirPopup(context_menu, selected); break; + default: + break; } context_menu.exec(tree_view->viewport()->mapToGlobal(menu_location)); } |