diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-02-26 20:23:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-26 20:23:10 +0100 |
commit | 2d3dd6f6ee4cb313814146532dc647be1b4a31f3 (patch) | |
tree | a87199f227d89489019c23e9119efa37b4d6c0a6 /platform | |
parent | 1ec8b9fb7dfaa074b1f6c2017790f65ca24fa88c (diff) | |
parent | 0cd309c5c7b75c9414902aa1fe057c894d6d3f42 (diff) |
Merge pull request #7854 from neikeq/pr-execute-iter
Replace misuse of list iteration
Diffstat (limited to 'platform')
-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 23a25166b9..0ef964522b 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1968,10 +1968,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); |