mirror of
https://github.com/tstack/lnav
synced 2024-11-15 18:13:10 +00:00
[build] remove use of <algorithm>
This commit is contained in:
parent
a687de1690
commit
ef7c7fa9b4
@ -120,11 +120,14 @@ struct user_message {
|
||||
std::make_move_iterator(std::begin(snippets)),
|
||||
std::make_move_iterator(std::end(snippets)));
|
||||
if (this->um_snippets.size() > 1) {
|
||||
auto last_iter = std::remove_if(
|
||||
this->um_snippets.begin(),
|
||||
this->um_snippets.end(),
|
||||
[](const auto& elem) { return elem.s_content.empty(); });
|
||||
this->um_snippets.erase(last_iter, this->um_snippets.end());
|
||||
for (auto iter = this->um_snippets.begin();
|
||||
iter != this->um_snippets.end();) {
|
||||
if (iter->s_content.empty()) {
|
||||
iter = this->um_snippets.erase(iter);
|
||||
} else {
|
||||
++iter;
|
||||
}
|
||||
}
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user