aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ResourceFolderModel.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-10 20:41:52 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2023-08-11 10:57:57 +0200
commitea43d0f687391db08459ea43794ee97b93e654fa (patch)
tree76a8bbbbe3fe4bb0518da61970732432c2e3d02b /launcher/minecraft/mod/ResourceFolderModel.h
parentef6f9487f48ee6f114d47108977380fb4c278597 (diff)
downloadPrismLauncher-ea43d0f687391db08459ea43794ee97b93e654fa.tar.gz
PrismLauncher-ea43d0f687391db08459ea43794ee97b93e654fa.tar.bz2
PrismLauncher-ea43d0f687391db08459ea43794ee97b93e654fa.zip
fix: fix more warnings
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/minecraft/mod/ResourceFolderModel.h')
-rw-r--r--launcher/minecraft/mod/ResourceFolderModel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/ResourceFolderModel.h b/launcher/minecraft/mod/ResourceFolderModel.h
index 45a5cc3a..e7884894 100644
--- a/launcher/minecraft/mod/ResourceFolderModel.h
+++ b/launcher/minecraft/mod/ResourceFolderModel.h
@@ -78,7 +78,7 @@ class ResourceFolderModel : public QAbstractListModel {
/** Creates a new parse task, if needed, for 'res' and start it.*/
virtual void resolveResource(Resource* res);
- [[nodiscard]] int size() const { return m_resources.size(); }
+ [[nodiscard]] qsizetype size() const { return m_resources.size(); }
[[nodiscard]] bool empty() const { return size() == 0; }
[[nodiscard]] Resource& at(int index) { return *m_resources.at(index); }
[[nodiscard]] Resource const& at(int index) const { return *m_resources.at(index); }