1
0
Fork 0

Cleanup PVS warning regarding unecessary copy

This commit is contained in:
krcroft 2020-03-31 17:54:10 -07:00 committed by Patryk Obara
parent 73e22747e7
commit dad002203c

View file

@ -110,7 +110,7 @@ public:
while ( (idx = value.find("Z:\\")) != std::string::npos ||
(idx = value.find("z:\\")) != std::string::npos )
value.replace(idx,3,tempenv);
line = value;
line = std::move(value);
}
if (!line.size()) line = tempenv;
first_shell->SetEnv("PATH",line.c_str());
@ -1275,7 +1275,7 @@ public:
std::string homedir(temp_line);
Cross::ResolveHomedir(homedir);
if (!stat(homedir.c_str(),&test)) {
temp_line = homedir;
temp_line = std::move(homedir);
} else {
// convert dosbox filename to system filename
char fullname[CROSS_LEN];