diff options
author | flow <flowlnlnln@gmail.com> | 2022-11-14 14:15:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 14:15:46 -0800 |
commit | fece9e207bdae16574f450593346e80f50702b00 (patch) | |
tree | 030dd7d9d47fe1dc47e76059f612e89004146836 /launcher/meta | |
parent | f60b09568c503fc52204ad3411d8ae0091d4877b (diff) | |
parent | aef5349aee82922fb7cedab7489bc84766453700 (diff) | |
download | PrismLauncher-fece9e207bdae16574f450593346e80f50702b00.tar.gz PrismLauncher-fece9e207bdae16574f450593346e80f50702b00.tar.bz2 PrismLauncher-fece9e207bdae16574f450593346e80f50702b00.zip |
Merge pull request #448 from TheLastRar/fixup-warnings
Diffstat (limited to 'launcher/meta')
-rw-r--r-- | launcher/meta/Index.cpp | 4 | ||||
-rw-r--r-- | launcher/meta/JsonFormat.h | 5 |
2 files changed, 2 insertions, 7 deletions
diff --git a/launcher/meta/Index.cpp b/launcher/meta/Index.cpp index eec1b329..242aad9f 100644 --- a/launcher/meta/Index.cpp +++ b/launcher/meta/Index.cpp @@ -58,11 +58,11 @@ QVariant Index::data(const QModelIndex &index, int role) const } int Index::rowCount(const QModelIndex &parent) const { - return m_lists.size(); + return parent.isValid() ? 0 : m_lists.size(); } int Index::columnCount(const QModelIndex &parent) const { - return 1; + return parent.isValid() ? 0 : 1; } QVariant Index::headerData(int section, Qt::Orientation orientation, int role) const { diff --git a/launcher/meta/JsonFormat.h b/launcher/meta/JsonFormat.h index 93217b7e..63128a4e 100644 --- a/launcher/meta/JsonFormat.h +++ b/launcher/meta/JsonFormat.h @@ -60,11 +60,6 @@ struct Require QString suggests; }; -inline Q_DECL_PURE_FUNCTION uint qHash(const Require &key, uint seed = 0) Q_DECL_NOTHROW -{ - return qHash(key.uid, seed); -} - using RequireSet = std::set<Require>; void parseIndex(const QJsonObject &obj, Index *ptr); |