yuzu/game_list: Silence -Wswitch and -Wunused-variable

This commit is contained in:
ReinUsesLisp
2019-10-04 23:35:06 +00:00
parent 2b9b695fa7
commit f297e9ff22
2 changed files with 12 additions and 5 deletions

View File

@ -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);