added brace wrapping after if and for

This commit is contained in:
fourtf
2018-10-21 13:43:02 +02:00
parent c6e1ec3c71
commit e259b9e39f
138 changed files with 4738 additions and 2237 deletions
+8 -4
View File
@@ -9,8 +9,10 @@ IrcConnection::IrcConnection(QObject *parent)
this->pingTimer_.setInterval(5000);
this->pingTimer_.start();
QObject::connect(&this->pingTimer_, &QTimer::timeout, [this] {
if (this->isConnected()) {
if (!this->recentlyReceivedMessage_.load()) {
if (this->isConnected())
{
if (!this->recentlyReceivedMessage_.load())
{
this->sendRaw("PING");
this->reconnectTimer_.start();
}
@@ -22,7 +24,8 @@ IrcConnection::IrcConnection(QObject *parent)
this->reconnectTimer_.setInterval(5000);
this->reconnectTimer_.setSingleShot(true);
QObject::connect(&this->reconnectTimer_, &QTimer::timeout, [this] {
if (this->isConnected()) {
if (this->isConnected())
{
reconnectRequested.invoke();
}
});
@@ -31,7 +34,8 @@ IrcConnection::IrcConnection(QObject *parent)
[this](Communi::IrcMessage *) {
this->recentlyReceivedMessage_ = true;
if (this->reconnectTimer_.isActive()) {
if (this->reconnectTimer_.isActive())
{
this->reconnectTimer_.stop();
}
});