Use C++ iterators for Lists in many situations
This commit is contained in:
parent
b918c4c3ce
commit
4e6efd1b07
218 changed files with 2755 additions and 3004 deletions
|
|
@ -830,8 +830,8 @@ void EditorFileDialog::update_file_list() {
|
|||
while (!files.is_empty()) {
|
||||
bool match = patterns.is_empty();
|
||||
|
||||
for (List<String>::Element *E = patterns.front(); E; E = E->next()) {
|
||||
if (files.front()->get().matchn(E->get())) {
|
||||
for (String &E : patterns) {
|
||||
if (files.front()->get().matchn(E)) {
|
||||
match = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue