fix: LGTM warnings
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
e2ab2aea32
commit
0b81b283bf
@ -91,4 +91,32 @@ struct ModDetails
|
|||||||
, authors(other.authors)
|
, authors(other.authors)
|
||||||
, status(other.status)
|
, status(other.status)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
ModDetails& operator=(ModDetails& other)
|
||||||
|
{
|
||||||
|
this->mod_id = other.mod_id;
|
||||||
|
this->name = other.name;
|
||||||
|
this->version = other.version;
|
||||||
|
this->mcversion = other.mcversion;
|
||||||
|
this->homeurl = other.homeurl;
|
||||||
|
this->description = other.description;
|
||||||
|
this->authors = other.authors;
|
||||||
|
this->status = other.status;
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
ModDetails& operator=(ModDetails&& other)
|
||||||
|
{
|
||||||
|
this->mod_id = other.mod_id;
|
||||||
|
this->name = other.name;
|
||||||
|
this->version = other.version;
|
||||||
|
this->mcversion = other.mcversion;
|
||||||
|
this->homeurl = other.homeurl;
|
||||||
|
this->description = other.description;
|
||||||
|
this->authors = other.authors;
|
||||||
|
this->status = other.status;
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
@ -380,8 +380,8 @@ bool ResourceFolderModel::validateIndex(const QModelIndex& index) const
|
|||||||
if (!index.isValid())
|
if (!index.isValid())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
size_t row = index.row();
|
int row = index.row();
|
||||||
if (row < 0 || row >= size())
|
if (row < 0 || row >= m_resources.size())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user