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
+7 -3
View File
@@ -18,17 +18,21 @@ void Logging::initialize(Settings &settings, Paths &paths)
void Logging::addMessage(const QString &channelName, MessagePtr message)
{
if (!getSettings()->enableLogging) {
if (!getSettings()->enableLogging)
{
return;
}
auto it = this->loggingChannels_.find(channelName);
if (it == this->loggingChannels_.end()) {
if (it == this->loggingChannels_.end())
{
auto channel = new LoggingChannel(channelName);
channel->addMessage(message);
this->loggingChannels_.emplace(
channelName, std::unique_ptr<LoggingChannel>(std::move(channel)));
} else {
}
else
{
it->second->addMessage(message);
}
}