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
+4 -2
View File
@@ -74,12 +74,14 @@ void SearchPopup::performSearch()
ChannelPtr channel(new Channel("search", Channel::Type::None));
for (size_t i = 0; i < this->snapshot_.getLength(); i++) {
for (size_t i = 0; i < this->snapshot_.getLength(); i++)
{
MessagePtr message = this->snapshot_[i];
if (text.isEmpty() ||
message->searchText.indexOf(this->searchInput_->text(), 0,
Qt::CaseInsensitive) != -1) {
Qt::CaseInsensitive) != -1)
{
channel->addMessage(message);
}
}