summaryrefslogtreecommitdiffstats
path: root/Source/cmSetCommand.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2009-05-10 20:07:34 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2009-05-10 20:07:34 (GMT)
commitad194e659fcf99911ac467db7c6332b2671f8c2e (patch)
tree13b8048d3dfd2c049980c38a075580c6330a2080 /Source/cmSetCommand.cxx
parent8e03bfb57d8175fd8a899323786504faf4762ba6 (diff)
downloadCMake-ad194e659fcf99911ac467db7c6332b2671f8c2e.zip
CMake-ad194e659fcf99911ac467db7c6332b2671f8c2e.tar.gz
CMake-ad194e659fcf99911ac467db7c6332b2671f8c2e.tar.bz2
STYLE: cacheStart is used only locally in the if-branch
Alex
Diffstat (limited to 'Source/cmSetCommand.cxx')
-rw-r--r--Source/cmSetCommand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx
index 1be75ce..b9b2b7c 100644
--- a/Source/cmSetCommand.cxx
+++ b/Source/cmSetCommand.cxx
@@ -79,7 +79,6 @@ bool cmSetCommand
cmCacheManager::CacheEntryType type
= cmCacheManager::STRING; // required if cache
const char* docstring = 0; // required if cache
- std::string::size_type cacheStart = 0;
unsigned int ignoreLastArgs = 0;
// look for PARENT_SCOPE argument
@@ -145,7 +144,7 @@ bool cmSetCommand
if(cache)
{
- cacheStart = args.size() - 3 - (force ? 1 : 0);
+ 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();
}