diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-10 20:41:52 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-11 10:57:57 +0200 |
commit | ea43d0f687391db08459ea43794ee97b93e654fa (patch) | |
tree | 76a8bbbbe3fe4bb0518da61970732432c2e3d02b /launcher/minecraft/mod/ResourceFolderModel.h | |
parent | ef6f9487f48ee6f114d47108977380fb4c278597 (diff) | |
download | PrismLauncher-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.h | 2 |
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); } |