mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Fix build
This commit is contained in:
parent
f4dc2dcd22
commit
1b4a8db4c5
@ -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()));
|
||||||
|
Loading…
Reference in New Issue
Block a user