1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fix build

This commit is contained in:
godric3 2024-09-22 00:11:21 +02:00
parent f4dc2dcd22
commit 1b4a8db4c5

View File

@ -48,7 +48,7 @@ QuestWidget::QuestWidget(MapController & _controller, CQuest & _sh, QWidget *par
} }
//fill artifacts //fill artifacts
for(const auto artifactPtr : VLC->arth->objects) for(const auto & artifactPtr : VLC->arth->objects)
{ {
auto artifactIndex = artifactPtr->getIndex(); auto artifactIndex = artifactPtr->getIndex();
auto * item = new QListWidgetItem(QString::fromStdString(artifactPtr->getNameTranslated())); auto * item = new QListWidgetItem(QString::fromStdString(artifactPtr->getNameTranslated()));
@ -60,7 +60,7 @@ QuestWidget::QuestWidget(MapController & _controller, CQuest & _sh, QWidget *par
} }
//fill spells //fill spells
for(const auto spellPtr : VLC->spellh->objects) for(const auto & spellPtr : VLC->spellh->objects)
{ {
auto spellIndex = spellPtr->getIndex(); auto spellIndex = spellPtr->getIndex();
auto * item = new QListWidgetItem(QString::fromStdString(spellPtr->getNameTranslated())); auto * item = new QListWidgetItem(QString::fromStdString(spellPtr->getNameTranslated()));
@ -73,7 +73,7 @@ QuestWidget::QuestWidget(MapController & _controller, CQuest & _sh, QWidget *par
//fill skills //fill skills
ui->lSkills->setRowCount(VLC->skillh->objects.size()); ui->lSkills->setRowCount(VLC->skillh->objects.size());
for(const auto skillPtr : VLC->skillh->objects) for(const auto & skillPtr : VLC->skillh->objects)
{ {
auto skillIndex = skillPtr->getIndex(); auto skillIndex = skillPtr->getIndex();
auto * item = new QTableWidgetItem(QString::fromStdString(skillPtr->getNameTranslated())); auto * item = new QTableWidgetItem(QString::fromStdString(skillPtr->getNameTranslated()));