Skip to content

Commit 010329e

Browse files
committed
Fix clazy 3 argument lamda connect warnings
1 parent bb408c8 commit 010329e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/qgsaggregatetoolbutton.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ void QgsAggregateToolButton::aboutToShowMenu()
4444
mMenu->clear();
4545

4646
QAction *action = mMenu->addAction( tr( "Exclude" ) );
47-
connect( action, &QAction::triggered, [ this ]
47+
connect( action, &QAction::triggered, this, [ this ]
4848
{
4949
setActive( false );
5050
} );
5151

5252
for ( const auto &aggregate : qgis::as_const( mAvailableAggregates ) )
5353
{
5454
QAction *action = mMenu->addAction( aggregate.name );
55-
connect( action, &QAction::triggered, [ this, aggregate ]
55+
connect( action, &QAction::triggered, this, [ this, aggregate ]
5656
{
5757
setText( aggregate.name );
5858
setAggregate( aggregate.function );

0 commit comments

Comments
 (0)