diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-15 00:52:34 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-15 00:52:34 +0300 |
commit | 9546c771139bd5708ab4096ab15ffd39a15bed18 (patch) | |
tree | f583d753d18fa8c0f0ce84f46661685b87505c1f /launcher/ui/pages/modplatform/ResourceModel.h | |
parent | 0ba88ff138dc5bfc7128333c5ff6c65ab790c7bb (diff) | |
download | PrismLauncher-9546c771139bd5708ab4096ab15ffd39a15bed18.tar.gz PrismLauncher-9546c771139bd5708ab4096ab15ffd39a15bed18.tar.bz2 PrismLauncher-9546c771139bd5708ab4096ab15ffd39a15bed18.zip |
Some warnings
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/pages/modplatform/ResourceModel.h')
-rw-r--r-- | launcher/ui/pages/modplatform/ResourceModel.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/ui/pages/modplatform/ResourceModel.h b/launcher/ui/pages/modplatform/ResourceModel.h index 6533d9c6..cc813d6e 100644 --- a/launcher/ui/pages/modplatform/ResourceModel.h +++ b/launcher/ui/pages/modplatform/ResourceModel.h @@ -42,7 +42,10 @@ class ResourceModel : public QAbstractListModel { [[nodiscard]] virtual auto debugName() const -> QString; [[nodiscard]] virtual auto metaEntryBase() const -> QString = 0; - [[nodiscard]] inline int rowCount(const QModelIndex& parent) const override { return parent.isValid() ? 0 : m_packs.size(); } + [[nodiscard]] inline int rowCount(const QModelIndex& parent) const override + { + return parent.isValid() ? 0 : static_cast<int>(m_packs.size()); + } [[nodiscard]] inline int columnCount(const QModelIndex& parent) const override { return parent.isValid() ? 0 : 1; } [[nodiscard]] inline auto flags(const QModelIndex& index) const -> Qt::ItemFlags override { return QAbstractListModel::flags(index); } |