Chore: Proper Lambda Formatting (#2167)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Leon Richardt
2020-11-08 12:02:19 +01:00
committed by GitHub
parent fbd5df53d8
commit 0eed45ae67
71 changed files with 712 additions and 415 deletions
+4 -3
View File
@@ -58,9 +58,10 @@ void initUpdateButton(Button &button,
updateChange(Updates::instance().getStatus());
signalHolder.managedConnect(
Updates::instance().statusUpdated,
[updateChange](auto status) { updateChange(status); });
signalHolder.managedConnect(Updates::instance().statusUpdated,
[updateChange](auto status) {
updateChange(status);
});
}
} // namespace chatterino
+3 -1
View File
@@ -69,7 +69,9 @@ private:
// the cast here should absolutely not be necessary, but gcc still requires it
this->conn_ =
QObject::connect((QObject *)other, &QObject::destroyed, qApp,
[this](QObject *) { this->set(nullptr); },
[this](QObject *) {
this->set(nullptr);
},
Qt::DirectConnection);
}
+1 -1
View File
@@ -101,7 +101,7 @@ namespace {
QObject::connect(
p, static_cast<void (QProcess::*)(int)>(&QProcess::finished),
[=](int res) {
p->deleteLater(); //
p->deleteLater();
});
return p;