This commit is contained in:
Totoo
2026-02-24 11:23:41 +01:00
committed by GitHub
parent b09efb4d3c
commit e63f54c0a2
24 changed files with 96 additions and 63 deletions
+3 -2
View File
@@ -108,9 +108,10 @@ void resetFilteredEntries(ContainerType& entries, KeySelector keySelector) {
auto it = entries.begin();
while (it != entries.end()) {
if (keySelector(*it)) {
entries.erase(it); // Add a new entry to filteredEntries
it = entries.erase(it); // Add a new entry to filteredEntries
} else {
++it; // Move to the next element, outside of the if block
}
++it; // Move to the next element, outside of the if block
}
}