summaryrefslogtreecommitdiff
path: root/src/yuzu/game_list_p.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-10-04 23:35:06 +0000
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-10-04 23:41:22 +0000
commitf297e9ff22b245ca5050d63a727b1d1e59840709 (patch)
tree69f93c7f2bd5f8ca268593b910f2fd7862b44deb /src/yuzu/game_list_p.h
parent2b9b695fa70a2fec13623b051437671a66bb1a0c (diff)
yuzu/game_list: Silence -Wswitch and -Wunused-variable
Diffstat (limited to 'src/yuzu/game_list_p.h')
-rw-r--r--src/yuzu/game_list_p.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h
index a8d888fee..1c2b37afd 100644
--- a/src/yuzu/game_list_p.h
+++ b/src/yuzu/game_list_p.h
@@ -247,7 +247,7 @@ public:
Qt::DecorationRole);
setData(QObject::tr("System Titles"), Qt::DisplayRole);
break;
- case GameListItemType::CustomDir:
+ case GameListItemType::CustomDir: {
const QString icon_name = QFileInfo::exists(game_dir->path)
? QStringLiteral("folder")
: QStringLiteral("bad_folder");
@@ -256,8 +256,11 @@ public:
Qt::DecorationRole);
setData(game_dir->path, Qt::DisplayRole);
break;
- };
- };
+ }
+ default:
+ break;
+ }
+ }
int type() const override {
return static_cast<int>(dir_type);