summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-17 15:47:54 +0200
committerGitHub <noreply@github.com>2018-09-17 15:47:54 +0200
commite833301e4caeddfc0147f1bf18a8c7a477a50f5a (patch)
tree2e187284d50826a27269665b9d856dad47165b38
parentMerge pull request #1336 from lioncash/antialias (diff)
parentgame_list_p: Amend typo in GameListItemCompat's constructor parameter (diff)
downloadyuzu-e833301e4caeddfc0147f1bf18a8c7a477a50f5a.tar
yuzu-e833301e4caeddfc0147f1bf18a8c7a477a50f5a.tar.gz
yuzu-e833301e4caeddfc0147f1bf18a8c7a477a50f5a.tar.bz2
yuzu-e833301e4caeddfc0147f1bf18a8c7a477a50f5a.tar.lz
yuzu-e833301e4caeddfc0147f1bf18a8c7a477a50f5a.tar.xz
yuzu-e833301e4caeddfc0147f1bf18a8c7a477a50f5a.tar.zst
yuzu-e833301e4caeddfc0147f1bf18a8c7a477a50f5a.zip
-rw-r--r--src/yuzu/game_list_p.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h
index f22e422e5..b6272d536 100644
--- a/src/yuzu/game_list_p.h
+++ b/src/yuzu/game_list_p.h
@@ -106,7 +106,7 @@ class GameListItemCompat : public GameListItem {
public:
static const int CompatNumberRole = Qt::UserRole + 1;
GameListItemCompat() = default;
- explicit GameListItemCompat(const QString& compatiblity) {
+ explicit GameListItemCompat(const QString& compatibility) {
struct CompatStatus {
QString color;
const char* text;
@@ -123,13 +123,13 @@ public:
{"99", {"#000000", QT_TR_NOOP("Not Tested"), QT_TR_NOOP("The game has not yet been tested.")}}};
// clang-format on
- auto iterator = status_data.find(compatiblity);
+ auto iterator = status_data.find(compatibility);
if (iterator == status_data.end()) {
- LOG_WARNING(Frontend, "Invalid compatibility number {}", compatiblity.toStdString());
+ LOG_WARNING(Frontend, "Invalid compatibility number {}", compatibility.toStdString());
return;
}
- CompatStatus status = iterator->second;
- setData(compatiblity, CompatNumberRole);
+ const CompatStatus& status = iterator->second;
+ setData(compatibility, CompatNumberRole);
setText(QObject::tr(status.text));
setToolTip(QObject::tr(status.tooltip));
setData(CreateCirclePixmapFromColor(status.color), Qt::DecorationRole);