added brace wrapping after if and for
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user