forked from qt-creator/qt-creator
CorePlugin: Pass context object to lambda connections
Remove some unneeded lambda () brackets. Change-Id: Id664cfc3b46685f63fb205beaf16a7c271ad95d9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -238,7 +238,7 @@ public:
|
||||
if (ICore::settings()->value(showCrashButtonKey).toBool()) {
|
||||
auto crashButton = new QPushButton("CRASH!!!");
|
||||
crashButton->show();
|
||||
connect(crashButton, &QPushButton::clicked, []() {
|
||||
connect(crashButton, &QPushButton::clicked, [] {
|
||||
// do a real crash
|
||||
volatile int* a = reinterpret_cast<volatile int *>(NULL); *a = 1;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user