[cmake-commits] alex committed cmLocalGenerator.cxx 1.231 1.232
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Jul 23 09:06:50 EDT 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv8515/Source
Modified Files:
cmLocalGenerator.cxx
Log Message:
PERF: micro optimization: the (*pos1) && (*pos1=='/') were redundant, and
hasDoubleSlash is false in most cases, so in most cases 3 comparisons were
done, now only one
Alex
Index: cmLocalGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalGenerator.cxx,v
retrieving revision 1.231
retrieving revision 1.232
diff -u -d -r1.231 -r1.232
--- cmLocalGenerator.cxx 17 Jul 2007 14:44:09 -0000 1.231
+++ cmLocalGenerator.cxx 23 Jul 2007 13:06:48 -0000 1.232
@@ -2193,13 +2193,12 @@
break;
}
}
-
// Now convert it to an output path.
if (output == MAKEFILE)
{
result = cmSystemTools::ConvertToOutputPath(result.c_str());
}
- if( output == SHELL)
+ else if( output == SHELL)
{
// For the MSYS shell convert drive letters to posix paths, so
// that c:/some/path becomes /c/some/path. This is needed to
@@ -2298,9 +2297,8 @@
//----------------------------------------------------------------------------
std::string
-cmLocalGenerator
-::ConvertToRelativePath(const std::vector<std::string>& local,
- const char* in_remote)
+cmLocalGenerator::ConvertToRelativePath(const std::vector<std::string>& local,
+ const char* in_remote)
{
// The path should never be quoted.
assert(in_remote[0] != '\"');
More information about the Cmake-commits
mailing list