Skip to content

Commit

Permalink
Fix clazy 3 argument lamda connect warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 2, 2018
1 parent bb408c8 commit 010329e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsaggregatetoolbutton.cpp
Expand Up @@ -44,15 +44,15 @@ void QgsAggregateToolButton::aboutToShowMenu()
mMenu->clear();

QAction *action = mMenu->addAction( tr( "Exclude" ) );
connect( action, &QAction::triggered, [ this ]
connect( action, &QAction::triggered, this, [ this ]
{
setActive( false );
} );

for ( const auto &aggregate : qgis::as_const( mAvailableAggregates ) )
{
QAction *action = mMenu->addAction( aggregate.name );
connect( action, &QAction::triggered, [ this, aggregate ]
connect( action, &QAction::triggered, this, [ this, aggregate ]
{
setText( aggregate.name );
setAggregate( aggregate.function );
Expand Down

0 comments on commit 010329e

Please sign in to comment.