[Cmake-commits] [cmake-commits] alex committed cmSetCommand.cxx 1.34 1.35
cmake-commits at cmake.org
cmake-commits at cmake.org
Sun May 10 16:07:37 EDT 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv30169
Modified Files:
cmSetCommand.cxx
Log Message:
STYLE: cacheStart is used only locally in the if-branch
Alex
Index: cmSetCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmSetCommand.cxx,v
retrieving revision 1.34
retrieving revision 1.35
diff -C 2 -d -r1.34 -r1.35
*** cmSetCommand.cxx 21 Nov 2008 21:32:39 -0000 1.34
--- cmSetCommand.cxx 10 May 2009 20:07:34 -0000 1.35
***************
*** 80,84 ****
= cmCacheManager::STRING; // required if cache
const char* docstring = 0; // required if cache
- std::string::size_type cacheStart = 0;
unsigned int ignoreLastArgs = 0;
--- 80,83 ----
***************
*** 146,150 ****
if(cache)
{
! cacheStart = args.size() - 3 - (force ? 1 : 0);
type = cmCacheManager::StringToType(args[cacheStart+1].c_str());
docstring = args[cacheStart+2].c_str();
--- 145,149 ----
if(cache)
{
! std::string::size_type cacheStart = args.size() - 3 - (force ? 1 : 0);
type = cmCacheManager::StringToType(args[cacheStart+1].c_str());
docstring = args[cacheStart+2].c_str();
More information about the Cmake-commits
mailing list