PIString remove operator char*

This commit is contained in:
2020-09-15 11:24:13 +03:00
parent e10ff53547
commit 78731bd971
2 changed files with 4 additions and 17 deletions

View File

@@ -316,7 +316,7 @@ void copyWildcard(const PIString & from, const PIString & to) {
PIDir(to).make();
#ifdef WINDOWS
PIFile::FileInfo fi; fi.path = from;
system("robocopy \"" + fi.dir() + "\" \"" + to + "\" \"" + fi.name() + "\" /NJH /NJS /NP /NDL /NS /NC /NFL 1> NUL");
system(("robocopy \"" + fi.dir() + "\" \"" + to + "\" \"" + fi.name() + "\" /NJH /NJS /NP /NDL /NS /NC /NFL 1> NUL").data());
#else
system(cmd_copy + from + " \"" + to + "/\"" + cmd_suffix);
#endif
@@ -644,8 +644,8 @@ int main(int argc, char * argv[]) {
if (need_cp) {
piCout << "copy" << l;
if (!fake) {
system(cmd_copy + "\"" + l + "\" \"" + out_dir + "\"" + cmd_suffix);
system(strip + " --strip-unneeded \"" + out_dir + fi.name() + "\"");
system((cmd_copy + "\"" + l + "\" \"" + out_dir + "\"" + cmd_suffix).data());
system((strip + " --strip-unneeded \"" + out_dir + fi.name() + "\"").data());
}
}
}
@@ -655,7 +655,7 @@ int main(int argc, char * argv[]) {
if (!fd.isEmpty()) {
piCout << "copy framework" << f;
if (!fake)
system(cmd_copydir + "\"" + fd + "\" \"" + out_dir + "\"" + cmd_suffix);
system((cmd_copydir + "\"" + fd + "\" \"" + out_dir + "\"" + cmd_suffix).data());
} else
miss_frameworks << f;
}