summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-17 11:31:27 +0200
committerLioncash <mathew1800@gmail.com>2018-09-17 11:31:30 +0200
commit13930f0c338c78623d9b71770984e9d08befaace (patch)
tree9b8d85a3aaecdae58b3a7d4d7022bd8fc6156560
parentgame_list_p: Take map iterator contents by const reference (diff)
downloadyuzu-13930f0c338c78623d9b71770984e9d08befaace.tar
yuzu-13930f0c338c78623d9b71770984e9d08befaace.tar.gz
yuzu-13930f0c338c78623d9b71770984e9d08befaace.tar.bz2
yuzu-13930f0c338c78623d9b71770984e9d08befaace.tar.lz
yuzu-13930f0c338c78623d9b71770984e9d08befaace.tar.xz
yuzu-13930f0c338c78623d9b71770984e9d08befaace.tar.zst
yuzu-13930f0c338c78623d9b71770984e9d08befaace.zip
-rw-r--r--src/yuzu/game_list_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h
index 094437090..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;
}
const CompatStatus& status = iterator->second;
- setData(compatiblity, CompatNumberRole);
+ setData(compatibility, CompatNumberRole);
setText(QObject::tr(status.text));
setToolTip(QObject::tr(status.tooltip));
setData(CreateCirclePixmapFromColor(status.color), Qt::DecorationRole);