Skip to content

Commit

Permalink
no need for auto
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlebantongying committed Nov 26, 2024
1 parent 57e3b05 commit f0b5d6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ int main( int argc, char ** argv )
&app,
&QGuiApplication::commitDataRequest,
&m,
[ &m ]( auto & ) {
[ &m ]( QSessionManager & ) {
m.commitData();
},
Qt::DirectConnection );
Expand All @@ -600,7 +600,7 @@ int main( int argc, char ** argv )
&app,
&QGuiApplication::saveStateRequest,
&app,
[]( auto & mgr ) {
[]( QSessionManager & mgr ) {
mgr.setRestartHint( QSessionManager::RestartNever );
},
Qt::DirectConnection );
Expand Down

0 comments on commit f0b5d6f

Please sign in to comment.