Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4.
This commit is contained in:
@ -743,10 +743,10 @@ void FileDialog::set_current_path(const String &p_path) {
|
||||
if (pos == -1) {
|
||||
set_current_file(p_path);
|
||||
} else {
|
||||
String dir = p_path.substr(0, pos);
|
||||
String file = p_path.substr(pos + 1, p_path.length());
|
||||
set_current_dir(dir);
|
||||
set_current_file(file);
|
||||
String path_dir = p_path.substr(0, pos);
|
||||
String path_file = p_path.substr(pos + 1, p_path.length());
|
||||
set_current_dir(path_dir);
|
||||
set_current_file(path_file);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user