Merge "Fix segmentation fault in aapt2"
This commit is contained in:
committed by
Android (Google) Code Review
commit
6e97fa9812
@@ -135,7 +135,8 @@ class ManifestExtractor {
|
||||
template <typename Predicate>
|
||||
void Filter(Predicate&& func) {
|
||||
children_.erase(std::remove_if(children_.begin(), children_.end(),
|
||||
[&](const auto& e) { return func(e.get()); }));
|
||||
[&](const auto& e) { return func(e.get()); }),
|
||||
children_.end());
|
||||
}
|
||||
|
||||
/** Retrieves the list of children of the element. */
|
||||
|
||||
Reference in New Issue
Block a user