Skip to content
Permalink
Browse files

Fix clazy 3 argument lamda connect warnings

  • Loading branch information
nyalldawson committed Feb 2, 2018
1 parent bb408c8 commit 010329e1fa71af8d69c121c0b9d462a859170b52
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsaggregatetoolbutton.cpp
@@ -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 );

0 comments on commit 010329e

Please sign in to comment.
You can’t perform that action at this time.