Replace misuse of list iteration
(cherry picked from commit 0cd309c5c7
)
This commit is contained in:
parent
dffdf28349
commit
77cb8f058d
1 changed files with 3 additions and 3 deletions
|
@ -1972,10 +1972,10 @@ Error OS_Windows::execute(const String& p_path, const List<String>& p_arguments,
|
||||||
|
|
||||||
String argss;
|
String argss;
|
||||||
argss="\"\""+p_path+"\"";
|
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(" \"")+E->get()+"\"";
|
||||||
|
|
||||||
argss+=String(" \"")+p_arguments[i]+"\"";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// print_line("ARGS: "+argss);
|
// print_line("ARGS: "+argss);
|
||||||
|
|
Loading…
Reference in a new issue