updated functions to avoid unused arguments/captures

This commit is contained in:
AdenKoperczak 2024-09-19 11:42:28 -04:00
parent 3be82e1d1f
commit f2c9de4b36
2 changed files with 5 additions and 4 deletions

View file

@ -420,7 +420,7 @@ void Level3ProductsWidgetImpl::UpdateCategorySelection(
std::for_each(categoryButtons_.cbegin(),
categoryButtons_.cend(),
[&, this](auto& toolButton)
[&](auto& toolButton)
{
if (toolButton->text().toStdString() == categoryName)
{
@ -444,7 +444,7 @@ void Level3ProductsWidgetImpl::UpdateProductSelection(
std::for_each(awipsProductMap_.cbegin(),
awipsProductMap_.cend(),
[&, this](const auto& pair)
[&](const auto& pair)
{
if (pair.second == awipsId)
{

View file

@ -784,7 +784,7 @@ void SettingsDialogImpl::SetupPalettesColorTablesTab()
QObject::connect(dialog,
&QFileDialog::fileSelected,
self_,
[this, lineEdit](const QString& file)
[lineEdit](const QString& file)
{
QString path = QDir::toNativeSeparators(file);
@ -1386,6 +1386,7 @@ void SettingsDialogImpl::LoadColorTablePreview(const std::string& key,
void SettingsDialogImpl::ShowColorDialog(QLineEdit* lineEdit, QFrame* frame)
{
(void)frame;
QColorDialog* dialog = new QColorDialog(self_);
dialog->setAttribute(Qt::WA_DeleteOnClose);
@ -1401,7 +1402,7 @@ void SettingsDialogImpl::ShowColorDialog(QLineEdit* lineEdit, QFrame* frame)
dialog,
&QColorDialog::colorSelected,
self_,
[this, lineEdit, frame](const QColor& color)
[lineEdit](const QColor& color)
{
QString colorName = color.name(QColor::NameFormat::HexArgb);