1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

DirAccess: Drop compat get_next(bool *is_dir) which was hidden

Fixes this warning:
```
./core/os/dir_access.h:74:17: warning: 'virtual String DirAccess::get_next(bool*)' was hidden [-Woverloaded-virtual]
```

Part of #30790.
This commit is contained in:
Rémi Verschelde
2019-07-25 11:09:57 +02:00
parent 1481d299ea
commit 43238bb59a
7 changed files with 23 additions and 46 deletions

View File

@@ -673,12 +673,11 @@ void EditorFileSystem::_scan_new_dir(EditorFileSystemDirectory *p_dir, DirAccess
da->list_dir_begin();
while (true) {
bool isdir;
String f = da->get_next(&isdir);
String f = da->get_next();
if (f == "")
break;
if (isdir) {
if (da->current_is_dir()) {
if (f.begins_with(".")) //ignore hidden and . / ..
continue;
@@ -870,12 +869,11 @@ void EditorFileSystem::_scan_fs_changes(EditorFileSystemDirectory *p_dir, const
da->list_dir_begin();
while (true) {
bool isdir;
String f = da->get_next(&isdir);
String f = da->get_next();
if (f == "")
break;
if (isdir) {
if (da->current_is_dir()) {
if (f.begins_with(".")) //ignore hidden and . / ..
continue;