Browse Source

game_list_p: Resolve deprecated usage of QVariant operator<

This is designated as obsolete in Qt's docs (see:
https://doc.qt.io/qt-5/qvariant-obsolete.html#operator-lt)
nce_cpp
Lioncash 5 years ago
parent
commit
66bb735a95
  1. 3
      src/yuzu/game_list_p.h

3
src/yuzu/game_list_p.h

@ -174,7 +174,8 @@ public:
}
bool operator<(const QStandardItem& other) const override {
return data(CompatNumberRole) < other.data(CompatNumberRole);
return data(CompatNumberRole).value<QString>() <
other.data(CompatNumberRole).value<QString>();
}
};

Loading…
Cancel
Save