mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
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
|
|
@ -347,13 +347,13 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
|
|||
|
||||
uint64_t total = 0;
|
||||
|
||||
for (List<DebuggerMarshalls::ResourceInfo>::Element *E = usage.infos.front(); E; E = E->next()) {
|
||||
for (DebuggerMarshalls::ResourceInfo &E : usage.infos) {
|
||||
TreeItem *it = vmem_tree->create_item(root);
|
||||
String type = E->get().type;
|
||||
int bytes = E->get().vram;
|
||||
it->set_text(0, E->get().path);
|
||||
String type = E.type;
|
||||
int bytes = E.vram;
|
||||
it->set_text(0, E.path);
|
||||
it->set_text(1, type);
|
||||
it->set_text(2, E->get().format);
|
||||
it->set_text(2, E.format);
|
||||
it->set_text(3, String::humanize_size(bytes));
|
||||
total += bytes;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue