fix: fix more warnings
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
ef6f9487f4
commit
ea43d0f687
8 changed files with 17 additions and 17 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue