fix build

also fixed some warninigs of unused vars and formated the code again

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2026-01-17 02:28:56 +02:00
parent 78bc6657f4
commit d05b996c8a
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
21 changed files with 27 additions and 63 deletions

View file

@ -159,7 +159,7 @@ int InstanceList::rowCount(const QModelIndex& parent) const
QModelIndex InstanceList::index(int row, int column, const QModelIndex& parent) const
{
Q_UNUSED(parent);
if (row < 0 || row >= m_instances.size())
if (row < 0 || static_cast<std::size_t>(row) >= m_instances.size())
return QModelIndex();
return createIndex(row, column, m_instances.at(row).get());
}
@ -508,7 +508,6 @@ InstanceList::InstListError InstanceList::loadList()
for (auto& id : discoverInstances()) {
if (existingIds.contains(id)) {
auto instPair = existingIds[id];
existingIds.remove(id);
qInfo() << "Should keep and soft-reload" << id;
} else {
@ -1035,7 +1034,6 @@ bool InstanceList::commitStagedInstance(const QString& path,
groupName = QString();
QString instID;
BaseInstance* inst;
auto should_override = commiting.shouldOverride();