mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4.
This commit is contained in:
parent
5b7f62af55
commit
0103af1ddd
240 changed files with 3390 additions and 3431 deletions
|
@ -792,14 +792,14 @@ void OrphanResourcesDialog::show() {
|
|||
popup_centered_ratio(0.4);
|
||||
}
|
||||
|
||||
void OrphanResourcesDialog::_find_to_delete(TreeItem *p_item, List<String> &paths) {
|
||||
void OrphanResourcesDialog::_find_to_delete(TreeItem *p_item, List<String> &r_paths) {
|
||||
while (p_item) {
|
||||
if (p_item->get_cell_mode(0) == TreeItem::CELL_MODE_CHECK && p_item->is_checked(0)) {
|
||||
paths.push_back(p_item->get_metadata(0));
|
||||
r_paths.push_back(p_item->get_metadata(0));
|
||||
}
|
||||
|
||||
if (p_item->get_first_child()) {
|
||||
_find_to_delete(p_item->get_first_child(), paths);
|
||||
_find_to_delete(p_item->get_first_child(), r_paths);
|
||||
}
|
||||
|
||||
p_item = p_item->get_next();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue