cmLocalGenerator: Convert loop to algorithm.

This commit is contained in:
Stephen Kelly 2015-02-12 23:45:25 +01:00
parent f20a4257f2
commit b3a0c6e08f
1 changed files with 1 additions and 6 deletions

View File

@ -2800,12 +2800,7 @@ std::string cmLocalGenerator::ConvertToOutputFormat(const std::string& source,
} }
if(this->WindowsShell) if(this->WindowsShell)
{ {
std::string::size_type pos = 0; std::replace(result.begin(), result.end(), '/', '\\');
while((pos = result.find('/', pos)) != std::string::npos)
{
result[pos] = '\\';
pos++;
}
} }
result = this->EscapeForShell(result, true, false, output == WATCOMQUOTE); result = this->EscapeForShell(result, true, false, output == WATCOMQUOTE);
} }