Bug 386940

Summary: Error message when connecting to lambda
Product: [Developer tools] clazy Reporter: Richard <richard.oehlinger>
Component: generalAssignee: Sergio Martins <smartins>
Status: RESOLVED FIXED    
Severity: minor CC: smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Richard 2017-11-15 09:16:04 UTC
A connect to a lambda issues an error message in the const-signal-or-slot checker message:
error, invalid argIndex 3 number of arguments 3

code snippet:
QObject::connect(&o, &MyObject::signal1, []{});
Comment 1 Sergio Martins 2017-11-15 16:36:36 UTC
commit ad1efd24b4183e093247a6b788f9cc9e2c79e403
Author: Sergio Martins <iamsergio@gmail.com>
Date:   Wed Nov 15 16:28:38 2017 +0000

    const-signal-or-slot: Don't print an error when connecting to lambda
    
    returning nullptr is enough
    
    BUG: 386940