Skip to content

Commit

Permalink
fix(C4457): declaration hiding function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Dec 15, 2023
1 parent b3f9c9d commit 453c331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgets/settingspages/GeneralPageView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ class GeneralPageView : public QWidget
{
auto *combo = this->addDropdown(text, {}, std::move(toolTipText));

for (const auto &text : items)
for (const auto &item : items)
{
combo->addItem(QString::fromStdString(std::string(text)));
combo->addItem(QString::fromStdString(std::string(item)));
}

if (!defaultValueText.isEmpty())
Expand Down

0 comments on commit 453c331

Please sign in to comment.