diff options
| author | Ignacio Etcheverry | 2017-02-20 19:40:37 +0100 |
|---|---|---|
| committer | Ignacio Etcheverry | 2017-02-20 19:53:14 +0100 |
| commit | 0cd309c5c7b75c9414902aa1fe057c894d6d3f42 (patch) | |
| tree | 78f11d2f15b6de0d5a032b719b7e9fa64925d7d3 | |
| parent | 78336990f4f6c36db2000d6097826bbe573eb016 (diff) | |
| download | godot-0cd309c5c7b75c9414902aa1fe057c894d6d3f42.tar.gz godot-0cd309c5c7b75c9414902aa1fe057c894d6d3f42.tar.zst godot-0cd309c5c7b75c9414902aa1fe057c894d6d3f42.zip | |
Replace misuse of list iteration
| -rw-r--r-- | platform/windows/os_windows.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 1e51c18b6..6930de804 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1969,10 +1969,10 @@ Error OS_Windows::execute(const String& p_path, const List<String>& p_arguments, String argss; argss="\"\""+p_path+"\""; + + for (const List<String>::Element* E=p_arguments.front(); E; E=E->next()) { - for(int i=0;i<p_arguments.size();i++) { - - argss+=String(" \"")+p_arguments[i]+"\""; + argss+=String(" \"")+E->get()+"\""; } //print_line("ARGS: "+argss); |
