summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-12 22:45:25 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-18 23:59:19 (GMT)
commitb3a0c6e08f36efc5f3cd4c1a0d9614a789f91e38 (patch)
treec3932aa5f907babb864b828ea2e55d5b45041879 /Source
parentf20a4257f2889387fcbf540b29b16f10843f2f9e (diff)
downloadCMake-b3a0c6e08f36efc5f3cd4c1a0d9614a789f91e38.zip
CMake-b3a0c6e08f36efc5f3cd4c1a0d9614a789f91e38.tar.gz
CMake-b3a0c6e08f36efc5f3cd4c1a0d9614a789f91e38.tar.bz2
cmLocalGenerator: Convert loop to algorithm.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGenerator.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 6a6135b..2accf47 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2800,12 +2800,7 @@ std::string cmLocalGenerator::ConvertToOutputFormat(const std::string& source,
}
if(this->WindowsShell)
{
- std::string::size_type pos = 0;
- while((pos = result.find('/', pos)) != std::string::npos)
- {
- result[pos] = '\\';
- pos++;
- }
+ std::replace(result.begin(), result.end(), '/', '\\');
}
result = this->EscapeForShell(result, true, false, output == WATCOMQUOTE);
}