mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:50:05 +00:00
updated functions to avoid unused arguments/captures
This commit is contained in:
parent
3be82e1d1f
commit
f2c9de4b36
2 changed files with 5 additions and 4 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue